[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentyeleven/inc/ -> theme-customizer.js (source)

   1  ( function( $ ){
   2      wp.customize( 'blogname', function( value ) {
   3          value.bind( function( to ) {
   4              $( '#site-title a' ).text( to );
   5          } );
   6      } );
   7      wp.customize( 'blogdescription', function( value ) {
   8          value.bind( function( to ) {
   9              $( '#site-description' ).text( to );
  10          } );
  11      } );
  12  
  13      // Header text color
  14      wp.customize( 'header_textcolor', function( value ) {
  15          value.bind( function( to ) {
  16              if ( 'blank' === to ) {
  17                  $( '#site-title, #site-title a, #site-description' ).css( {
  18                      'clip': 'rect(1px, 1px, 1px, 1px)',
  19                      'position': 'absolute'
  20                  } );
  21              } else {
  22                  $( '#site-title, #site-title a, #site-description' ).css( {
  23                      'clip': 'auto',
  24                      'color': to,
  25                      'position': 'relative'
  26                  } );
  27              }
  28          } );
  29      } );
  30  } )( jQuery );


Generated: Mon Jul 22 01:00:03 2019 Cross-referenced by PHPXref 0.7.1