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:
parent
9a3f41ea68
commit
a10ce3904a
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
// Collect information from customize-controls.js about which panels are opening.
|
// Collect information from customize-controls.js about which panels are opening.
|
||||||
wp.customize.bind( 'preview-ready', function() {
|
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 ) {
|
wp.customize.preview.bind( 'section-highlight', function( data ) {
|
||||||
|
|
||||||
// Only on the front page.
|
// Only on the front page.
|
||||||
|
|
Loading…
Reference in New Issue