Blog tab gets highlighted in nav menu for custom post types
-
Hi WP Team, i’m currently working on a new site with wp and have registered several custom post types for it (they have post type archives enabled)
the issue :
Blog tab (a page set as Home page for blog posts in reading settings) get highligted ( get css class curent_page_parent ) for :
is_post_type_archive(‘product’)
is_singular(‘product’)NOTE there are no sub items for blog tab …
Questions :
1 for what reason ? I mean, why “blog” is considered as “parent” for totally independant content type?
2 since what version ?
3 how to fix it? Means , how i can preserve blog tab classes if the current page is related to “post” post type and remove the “current_page_parent” class if the visitor is viewing another content type?
SUGGESTION : guys , do not try to hide the thing with css, it will not fix the background of the problem.
thanks
- The topic ‘Blog tab gets highlighted in nav menu for custom post types’ is closed to new replies.