Created
February 21, 2014 19:00
-
-
Save mfields/9140890 to your computer and use it in GitHub Desktop.
Portfolio Press: customizer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( $ ) { | |
var $title = $( '#site-title a' ), | |
$tagline = $( '#site-description' ), | |
$branding = $( '#branding' ); | |
/* Title Text */ | |
wp.customize( 'blogname', function( value ) { | |
value.bind( function( to ) { | |
$title.text( to ); | |
} ); | |
} ); | |
/* Tagline Text */ | |
wp.customize( 'blogdescription', function( value ) { | |
value.bind( function( to ) { | |
$tagline.text( to ); | |
} ); | |
} ); | |
/* Header Background Color */ | |
wp.customize( 'portfoliopress[header_color]', function( value ) { | |
value.bind( function( to ) { | |
$branding.css( 'background-color', to ); | |
} ); | |
} ); | |
} )( jQuery ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment