Add class to only 1 link in menu

Posted in: Newspaper
Post count: 15

Hello in my page https://segnalidiborsa.com/ , in the top menu i want to make yellow only the ‘Telegram’ link.
I thought i could do this by altering the class of this specific item.
So by inspect element i found the class and in custom css i do the following:
.menu-item-6915 {
color:yellow;
}

i even tried with !important, it doesn’t work

Actually, i thought best would be to add a custom class only to this link?
Or exclude it somehow from the inheritance css by using :not but still it requires a custom class.

How do i add a custom class only to this item from the item list of menu?
thanks

Post count: 21065

Hello!

Please try to insert this CSS code:

.tdb-horiz-menu > li.menu-item-6915:hover > a { color: yellow!important;}

Let me know the results!

Thank you!

Post count: 15

I just removed the hover, because i want it always yellow.
Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.