WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Check this answer wordpress.stackexchange.com/questions/1230/… – Ashfame Aug 24 '11 at 13:58

I'd try to format my CSS rules accordingly. If you're using body_class() you can always target single-posttype so as a quick example

.single-posttype .current-menu-item { display: none; }

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.

share|improve this answer

i would use jquery

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.