WordPress.org

Make WordPress Core

Changeset 38998


Ignore:
Timestamp:
10/28/2016 09:00:14 PM (5 years ago)
Author:
karmatosed
Message:

Twenty Seventeen: Hidden article tags on home page fix

This prevents the issue of hidden article tags on home page.

Props ElectricFeet, iv.dimova. morettigeorgiev, davidakennedy
Fixes #38404

M twentyseventeen/inc/template-tags.php
M twentyseventeen/style.css

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php

    r38986 r38998  
    150150
    151151        wp_reset_postdata();
    152     } else {
     152    } elseif ( is_customize_preview() ) {
    153153        // The output placeholder anchor.
    154154        echo '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel' . $id . '" id="panel' . $id . '"><span class="twentyseventeen-panel-title">' . sprintf( __( 'Panel %1$s Placeholder', 'twentyseventeen' ), $id ) . '</span></article>';
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r38996 r38998  
    29512951--------------------------------------------------------------*/
    29522952
    2953 /* Hide placeholders until we're in the front page sections section */
    2954 .panel-placeholder {
    2955     display: none;
    2956 }
    2957 
    29582953.highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel:after {
    29592954    border: 2px dashed #0085ba; /* Matches visible edit shortcuts. */
Note: See TracChangeset for help on using the changeset viewer.