bbPress uses a custom post type called forums. When I click on forums, both forums and the Blog menu items are highlighted as a current-menu-item.
Is there a way to remove the current-menu-item from Blog when the post-type = forum?
|
bbPress uses a custom post type called forums. When I click on forums, both forums and the Blog menu items are highlighted as a current-menu-item. Is there a way to remove the current-menu-item from Blog when the post-type = forum? |
|||
|
|
I'd try to format my CSS rules accordingly. If you're using
Will hide the current menu item when you're on a specific post type. If this makes sense hehe. Another way would be creating your own navigation menu Walker and running some additional checks inside. |
|||
|
|