Visiting a Portfolio Category Page Makes Blog Menu Item Active
This support request was posted in Netelier by justinnorris
- justinnorris December 4, 2013 at 1:21 pm
Hi there,
Hey guys,
I am using some custom menu items on Netelier that link to specific portfolio category pages.
So for sake of explanation, let’s say I have a menu item called “Portfolio” (it’s called something different in my site which is linked to below) and underneath I have different sub-categories of portfolio items, which link to various
http://www.site.com/portfolio-category/portfolio-name
pages.
When I click on that specific link from the menu, not only is the Portfolio menu item highlighted as active but the menu item which is the equivalent of the blog on my site (also called something different, but you get the point) is also highlighted as active. So it’s like I have two active menu items at the same time.
It doesn’t seem to work this way on the Netelier theme demo — if I visit http://demo.nicethemes.com/netelier/portfolio-category/illustration/ there are no menu items active.
In my case, I would just want the menu item which is the parent of this link (equivalent of the portfolio menu item) to be active and not the blog link.
How can I do this?
Thanks!
Juanfra Aldasoro December 4, 2013 at 1:47 pmHi Justin,
Thanks for writing. I see, usually the parents are highlighted and nothing else. This is WordPress adding a CSS class (current_page_parent) automatically, given the menu or page hierarchy.
In your case, they have nothing to do. So I assume is a WordPress bug. In the meantime, I’ve found a solution. If I leave the “Posts Page” blank, in the “Settings > Reading” panel, this doesn’t happen any more.
There are some few others experiencing the same issue with different types of themes:
http://wordpress.org/support/topic/current_page_parent-is-wrong
http://wordpress.org/support/topic/menu-problem-css-choosing-wrong-current_page_parentWe should wait for WordPress to fix this bug 🙂
Best,
Juan.justinnorris December 4, 2013 at 2:16 pmOh great, that fixed it. So I guess assigning the Blog template to the page calls the post, then I don’t need to define it in Settings > Reading?
Thanks for the quick and awesome support!
Juanfra Aldasoro December 4, 2013 at 2:43 pmExactly 🙂
Thanks for your kind words. Have a nice day,
Juan.
You must be logged in to reply to this topic.