Make WordPress Core

Changeset 23670


Ignore:
Timestamp:
03/12/2013 04:52:30 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: fix toggling header text display in Customizer. Props obenland, fixes #23722.

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r23642 r23670  
    9797        .site-title,
    9898        .site-description {
    99             position: absolute !important;
     99            position: absolute;
    100100            clip: rect(1px 1px 1px 1px); /* IE7 */
    101101            clip: rect(1px, 1px, 1px, 1px);
  • trunk/wp-content/themes/twentythirteen/js/theme-customizer.js

    r23493 r23670  
    2121    wp.customize( 'header_textcolor', function( value ) {
    2222        value.bind( function( to ) {
    23             $( '.site-title, .site-description' ).css( 'color', to );
     23            if ( 'blank' == to ) {
     24                if ( 'remove-header' == _wpCustomizeSettings.values.header_image )
     25                    $( '#masthead hgroup' ).css( 'min-height', '0' );
     26                $( '.site-title, .site-description' ).css( {
     27                    'clip': 'rect(1px, 1px, 1px, 1px)',
     28                    'position': 'absolute'
     29                } );
     30            } else {
     31                $( '#masthead hgroup' ).css( 'min-height', '230px' );
     32                $( '.site-title, .site-description' ).css( {
     33                    'clip': 'auto',
     34                    'color': to,
     35                    'position': 'relative'
     36                } );
     37            }
    2438        } );
    2539    } );
Note: See TracChangeset for help on using the changeset viewer.