I’ve addded a controll to change the “basic color layout” of my theme, and everything worked so far. I created a select element where the user can select between a couple of colours, which will change the bg-color of the theme header.
I’ve tried to to make changes to the color of the tags under a specific condition like this:
<?php
if (get_theme_mod(‘type_setting’) == ‘#48C357’ ) {
?>
a {
color: black;
}
<?php
}
With #48C357 beeing the bg-color (green) where I want to change something individually.
However, this way doesn’t work for me.
Is this the right approach, or is there a better way?
Read more here:: WordPress own theme customizer basic color layout