Remove current_page_parent nav class from blog index when in CPT


I’m trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and custom post type posts.

I’ve found similar questions but I can’t figure out how to solve it. In addition, I don’t have the current_page_parent when navigating the custom_post_type (I guess it is related).

, , Kevin Mamaqi 7 years 2015-10-25T10:04:33-05:00 0 Answers 99 views 0

Leave an answer