Changeset 39448
- Timestamp:
- 12/02/2016 11:02:15 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js
r39421 r39448 9 9 // Collect information from customize-controls.js about which panels are opening. 10 10 wp.customize.bind( 'preview-ready', function() { 11 11 12 12 // Initially hide the theme option placeholders on load 13 13 $( '.panel-placeholder' ).hide(); 14 14 15 15 wp.customize.preview.bind( 'section-highlight', function( data ) { 16 16 … … 59 59 position: 'absolute' 60 60 }); 61 // Add class for different logo styles if title and description are hidden. 61 62 $( 'body' ).addClass( 'title-tagline-hidden' ); 62 63 } else { 64 65 // Check if the text color has been removed and use default colors in theme stylesheet. 66 if ( ! to.length ) { 67 $( '#twentyseventeen-custom-header-styles' ).remove(); 68 } 63 69 $( '.site-title, .site-description' ).css({ 64 70 clip: 'auto', … … 68 74 color: to 69 75 }); 76 // Add class for different logo styles if title and description are visible. 70 77 $( 'body' ).removeClass( 'title-tagline-hidden' ); 71 78 } -
branches/4.7/src/wp-content/themes/twentyseventeen/inc/custom-header.php
r39416 r39448 70 70 // If we get this far, we have custom styles. Let's do this. 71 71 ?> 72 <style type="text/css">72 <style id="twentyseventeen-custom-header-styles" type="text/css"> 73 73 <?php 74 74 // Has the text been hidden?
Note: See TracChangeset
for help on using the changeset viewer.