I'm currently working on a custom menu inside a header.
The menu has options such as "home", "products" etc..
I need to set up some code that changes the colour of a menu option depending on the page the user is currently on.
As an example, if I'm on the homepage, the "home" text in the menu has to be red, while all the other texts have to be black;
If I'm on the "products" page, the "products" text has to be red and all other texts have to be black.
If someone know how to set up this code, I'd very much appreciate your help. Thanks in advance!
Hello,
all properties belonging to ---> TEXT, you will find here .....
https://www.wix.com/corvid/reference/$w/text
You can use the html-command!
$w('#text18').html = "<h1 style='color:#F43F63'> Your Text in text18 </h1>";
If you would use the SEARCH-FUNCTION, you would find your solution within 5sec. 😉
https://www.wix.com/corvid/forum/community-discussion/change-text-color-on-hover