Hi,
In the theme settings, general styling tab, I want to set the primary colors to hex F18700. The theme doesn’t accept this color and changes it to F18900. Not much of a difference but not the color the designer and customer delivered.
Tested this on 2 different Enfold setups and both have the same problem. Bug?
Cheers,
Jaap
Hi Jaap!
Yes I notice it too. Perhaps it’s not a valid color code. If you try to change the numbers around you’ll see it automatically snaps to certain areas. What program are you using to get that color?
Cheers!
Elliott
Hi Elliot,
It’s a valid code, got it from the designer and can also select it in Photoshop. Strange thing is the problem is only in the theme settings. I can pick the code in any of the Avia modules. :-/
Cheers,
Jaap
Hey Jaap!
Try the following:
https://kriesi.at/support/topic/color-selection-not-working-for-specific-color-code/#post-342032
Regards,
Josue
Hi Josue,
Thanks, it worked. Any idea how to implement this in child theme setup. Creating the same path to the js file in child theme didn’t do the trick.
Cheers,
Jaap
Hi!
Please add following code to Functions.php file of your Child theme
function wp_change_avia_colorpickerjs() {
wp_dequeue_script( 'avia-default' );
wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia_colorpicker.js', array('jquery'), 2, true );
}
add_action( 'wp_print_scripts', 'wp_change_avia_colorpickerjs', 100 );
Best regards,
Yigit