Make WordPress Core

Changeset 39421


Ignore:
Timestamp:
12/02/2016 06:31:36 AM (10 years ago)
Author:
helen
Message:

Twenty Seventeen: Hide front section panels on page load of Customizer.

Props sstoqnov.

Fixes #38951 for the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js

    r39414 r39421  
    99        // Collect information from customize-controls.js about which panels are opening.
    1010        wp.customize.bind( 'preview-ready', function() {
     11               
     12                // Initially hide the theme option placeholders on load
     13                $( '.panel-placeholder' ).hide();
     14               
    1115                wp.customize.preview.bind( 'section-highlight', function( data ) {
    1216
Note: See TracChangeset for help on using the changeset viewer.