File: /home/dwauav0tm6jp/www/wp-content/themes/photographer-wp/admin/js/customize-preview.js
(function($)
{
// ====================================================================================================================
// ====================================================================================================================
wp.customize( 'blogname', function( value )
{
value.bind( function( to )
{
$( 'header h1.site-title a' ).html( to );
});
});
wp.customize( 'blogdescription', function( value )
{
value.bind( function( to )
{
// $( 'header p.site-description' ).html( to );
});
});
// ====================================================================================================================
// ====================================================================================================================
wp.customize( 'setting_link_color', function( value )
{
value.bind( function( to )
{
var styleCss = '<style type="text/css">' +
'a { color: ' + to + '; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
wp.customize( 'setting_link_hover_color', function( value )
{
value.bind( function( to )
{
var styleCss = '<style type="text/css">' +
'a:hover, .nav-menu ul li a:hover { color: ' + to + '; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
// ====================================================================================================================
// ====================================================================================================================
wp.customize( 'setting_content_font', function( value )
{
value.bind( function( to )
{
$( 'body' ).append( '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=' + to + '">' );
var styleCss = '<style type="text/css">' +
'body, input, textarea, select, button { font-family: "' + to + '", serif; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
wp.customize( 'setting_heading_font', function( value )
{
value.bind( function( to )
{
$( 'body' ).append( '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=' + to + '">' );
var styleCss = '<style type="text/css">' +
'h1, h2, h3, h4, h5, h6, .entry-meta, .entry-title, .navigation, .post-pagination, tr th, dl dt, input[type=submit], input[type=button], button, .button, label, .comment .reply, .comment-meta, .yarpp-thumbnail-title, .tab-titles, .owl-theme .owl-nav [class*="owl-"], .tptn_title, .widget_categories ul li.cat-item, .widget_recent_entries ul li { font-family: "' + to + '", serif; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
wp.customize( 'setting_menu_font', function( value )
{
value.bind( function( to )
{
$( 'body' ).append( '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=' + to + '">' );
var styleCss = '<style type="text/css">' +
'.nav-menu { font-family: "' + to + '", serif; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
wp.customize( 'setting_text_logo_font', function( value )
{
value.bind( function( to )
{
$( 'body' ).append( '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=' + to + '">' );
var styleCss = '<style type="text/css">' +
'.site-title { font-family: "' + to + '", serif; }' +
'</style>';
$( 'body' ).append( styleCss );
});
});
// ====================================================================================================================
// ====================================================================================================================
})(jQuery);