diff --git a/src/assets/js/customize-preview.js b/src/assets/js/customize-preview.js index 6fa7a1e..e56db18 100755 --- a/src/assets/js/customize-preview.js +++ b/src/assets/js/customize-preview.js @@ -11,27 +11,6 @@ .find( '#tainacan-color-scheme-css' ); } - // Site title. - api( 'blogname', function( value ) { - value.bind( function( to ) { - $( '.site-title a' ).text( to ); - } ); - } ); - - // Site tagline. - api( 'blogdescription', function( value ) { - value.bind( function( to ) { - $( '.site-description' ).text( to ); - } ); - } ); - - // Add custom-background-image body class when background image is added. - api( 'background_image', function( value ) { - value.bind( function( to ) { - $( 'body' ).toggleClass( 'custom-background-image', '' !== to ); - } ); - } ); - // Color Scheme CSS. api.bind( 'preview-ready', function() { api.preview.bind( 'update-color-scheme-css', function( css ) { diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 4ae638c..dad759b 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -123,7 +123,7 @@ function tainacan_get_color_schemes() { '#262626', '#1a1a1a', '#9adffd', - '#e5e5e5', + '#ffffff', '#c1c1c1', ), ), @@ -133,7 +133,7 @@ function tainacan_get_color_schemes() { '#616a73', '#4d545c', '#c7c7c7', - '#f2f2f2', + '#ffffff', '#f2f2f2', ), ), @@ -143,7 +143,7 @@ function tainacan_get_color_schemes() { '#ffffff', '#ff675f', '#640c1f', - '#402b30', + '#ffffff', '#402b30', ), ), @@ -153,7 +153,7 @@ function tainacan_get_color_schemes() { '#3b3721', '#ffef8e', '#774e24', - '#3b3721', + '#ffffff', '#5b4d3e', ), ), @@ -238,7 +238,7 @@ endif; // tainacan_sanitize_color_scheme */ function tainacan_color_scheme_css() { $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); - + // Don't do anything if the default color scheme is selected. if ( 'default' === $color_scheme_option ) { return; @@ -267,7 +267,7 @@ function tainacan_color_scheme_css() { $color_scheme_css = tainacan_get_color_scheme_css( $colors ); - wp_add_inline_style( 'tainacan-style', $color_scheme_css ); + wp_add_inline_style( 'custom-style', $color_scheme_css ); } add_action( 'wp_enqueue_scripts', 'tainacan_color_scheme_css' ); @@ -312,28 +312,32 @@ function tainacan_get_color_scheme_css( $colors ) { 'border_color' => '', ) ); - return ' + return << - +> @@ -7,10 +7,13 @@ <?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?> - - + + + + + - +>