In Settings-Reading I have selected a static page from my "Front page displays". My Front page is "Home" and my Posts page is "News".
I have also added a Custom Post Type called "Project" without an archive or a slug and I have added a page "Projects" which uses the template
So far so good, all is working, except one thing.
When I visit a single Project (CPT), in my top navigation "News" becomes selected. In the body-tag it gets the class
single single-project postid-114 single-format-standard logged-in
And in the nav-menu News has a class of
page_item page-item-6 current_page_parent.
I don't understand why this (News getting the
current_page_parent-class) would be happening, as I expected that none of the page_items would become selected.
- How can I get rid of this?
- And ideally, how can I make it so that "Projects" becomes selected?
Below a screenshot to (hopefully) clarify things.