Hello i wrote a ticket before but i recently tried to use your solution but didn’t work ๐
I want to change the accent colour based on the page i am on, (it would be cool if you could make this a feature for the theme) but for now the code is:
if(is_page('about-us')){
$accent_color = 'ff00db';
} elseif(is_page('photo-booths')){
$accent_color = 'f76908';
} elseif(is_page('private-parties')){
$accent_color = '0000fe';
} elseif(is_page('corporate')){
$accent_color = 'b401f3';
} elseif(is_page('marketing')){
$accent_color = '00e600';
} elseif(is_page('gallery')){
$accent_color = '22a8dd';
} elseif(is_page('contact')){
$accent_color = 'ff0000';
} elseif(is_page('photo-wall')){
$accent_color = '29ffc9';
} elseif(is_page('latest-products')){
$accent_color = 'fbaffb';
} elseif(is_page('blog')){
$accent_color = 'fed100';
} else {
$accent_color = 'ff0000';
}
I pasted that into css/custom-styles.css.php below this line (which i deleted out
$accent_color = get_option('accent_color', '#00aeef');
But what happens when i do this is the page looses styling options and the font changes and the background disapears, and it goes quite funny. How can i properly implement this so that this will work?