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
This commit is contained in:
Helen Hou-Sandi 2016-12-02 06:31:36 +00:00
parent 9a3f41ea68
commit a10ce3904a
1 changed files with 4 additions and 0 deletions

View File

@ -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.