Active color for menu items

Posted in: Newspaper
Post count: 62

Hello,

I have set ACTIVE & HOVER COLOR (“Theme color” -> “Main menu” -> “ACTIVE & HOVER COLOR”) on the theme panel but it does not work fully.
Well, Hover color works fine but active color does’t work on 1 item which is a bbPress page.

I even wrote below code but doesn’t work…

.td-header-style-3 .black-menu .sf-menu>.current-menu-item>a, .td-header-style-3 .black-menu .sf-menu>.current-menu-ancestor>a, .td-header-style-3 .black-menu .sf-menu>.current-category-ancestor>a, .td-header-style-3 .black-menu .sf-menu>li>a:hover, .td-header-style-3 .black-menu .sf-menu>.sfHover>a {
background-color: #00267f;
}

I deactivated bbPress related plugins already…
Any suggestions?

Post count: 20688

Hi,

It should work as long as the menu item was placed through the menu editing options
https://www.screencast.com/t/x0dSMvri
The menu item in question does not seem to have the required class, in order to be highlighted when active. I could give you a code that will display the background color for that menu item, when on that forum page
https://www.screencast.com/t/T6A3jETo

.forum-archive .menu-item-98 a {
background-color: #00267f;
}

Thanks

Post count: 62

The code works perfectly.
Thank you very much.

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