From 3ee7cc70f8160c1347a5162784598fdf76c6f0da Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Thu, 9 Aug 2018 12:08:32 -0300 Subject: [PATCH] fix color picker for default color (#1) --- src/functions/customizer.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 2a3d4ca..a51417b 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -356,11 +356,13 @@ function tainacan_get_color_scheme() { if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { $return = $color_schemes[ $color_scheme_option ]['colors']; - $return[2] = $link_color; // override link color with the one from color picker - return $return; } - return $color_schemes['default']['colors']; + $return = $color_schemes['default']['colors']; + $return[2] = $link_color; // override link color with the one from color picker + + return $return; + } endif; // tainacan_get_color_scheme @@ -422,9 +424,9 @@ 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; - } + //if ( 'default' == $color_scheme_option ) { + // return; + //} $color_scheme = tainacan_get_color_scheme();