From a10ce3904ae09bdf8b4218fa878f26dea2864fab Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Fri, 2 Dec 2016 06:31:36 +0000 Subject: [PATCH] Twenty Seventeen: Hide front section panels on page load of Customizer. Props sstoqnov. Fixes #38951 for the 4.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39421 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyseventeen/assets/js/customize-preview.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js b/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js index 11c9ed46ae..e5d4ee16d7 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js @@ -8,6 +8,10 @@ // Collect information from customize-controls.js about which panels are opening. wp.customize.bind( 'preview-ready', function() { + + // Initially hide the theme option placeholders on load + $( '.panel-placeholder' ).hide(); + wp.customize.preview.bind( 'section-highlight', function( data ) { // Only on the front page.