Ticket #38993: 38993.2.patch
File 38993.2.patch, 2.0 KB (added by , 9 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js
8 8 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 17 17 // Only on the front page. … … 58 58 clip: 'rect(1px, 1px, 1px, 1px)', 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', 65 71 position: 'relative' … … 67 73 $( '.site-branding, .site-branding a, .site-description, .site-description a' ).css({ 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 } 72 79 }); -
src/wp-content/themes/twentyseventeen/inc/custom-header.php
69 69 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? 75 75 if ( 'blank' === $header_text_color ) :