Twenty Seventeen: Hide front section panels on page load of Customizer.
Props sstoqnov. Fixes #38951. git-svn-id: https://develop.svn.wordpress.org/trunk@39417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25a6c0cc02
commit
4cf49676ab
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user