L3010
New Member
Posts: 49
inherit
264353
0
Mar 4, 2023 7:57:32 GMT -8
L3010
49
May 2021
l3010
|
Post by L3010 on Jun 14, 2021 10:00:56 GMT -8
I'm looking for a way to change the main container BG color at a specific route. To be more speciffic, at different categories, i want different container background colors.
I know how to code a route check if statement:
{if $[route.name] == "home"} {/if}
But i do not know how to target certain CSS-colors, I'm looking for a way to change the colors listed in "ADMIN > Advanced Styles And CSS".
I'm unsure of how to code is a line similar to:
document.getElementById(myId).style.background-color = "#3010ff";
// Changes background-color of id
If anyone could explain this to me i would be thankfull
|
|