From ae72d78fb6881c79e182784e71b9600574642068 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Fri, 28 Oct 2016 21:00:14 +0000 Subject: [PATCH] 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 git-svn-id: https://develop.svn.wordpress.org/trunk@38998 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/inc/template-tags.php | 2 +- src/wp-content/themes/twentyseventeen/style.css | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/template-tags.php b/src/wp-content/themes/twentyseventeen/inc/template-tags.php index 5da6420c87..2b0879ba4b 100644 --- a/src/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/src/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -149,7 +149,7 @@ function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { get_template_part( 'template-parts/page/content', 'front-page-panels' ); wp_reset_postdata(); - } else { + } elseif ( is_customize_preview() ) { // The output placeholder anchor. echo '
' . sprintf( __( 'Panel %1$s Placeholder', 'twentyseventeen' ), $id ) . '
'; } diff --git a/src/wp-content/themes/twentyseventeen/style.css b/src/wp-content/themes/twentyseventeen/style.css index 6ce0025a8c..3f854fa3f5 100644 --- a/src/wp-content/themes/twentyseventeen/style.css +++ b/src/wp-content/themes/twentyseventeen/style.css @@ -2950,11 +2950,6 @@ object { # Customizer --------------------------------------------------------------*/ -/* Hide placeholders until we're in the front page sections section */ -.panel-placeholder { - display: none; -} - .highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel:after { border: 2px dashed #0085ba; /* Matches visible edit shortcuts. */ bottom: 1em;