NiceThemesVisiting a Portfolio Category Page Makes Blog Menu Item Active – NiceThemes http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/feed/ Wed, 23 Apr 2025 15:28:45 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2580 <![CDATA[Visiting a Portfolio Category Page Makes Blog Menu Item Active]]> http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2580 Wed, 04 Dec 2013 13:21:03 +0000 justinnorris 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.nicethemeswp.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!

]]>
http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2582 <![CDATA[Reply To: Visiting a Portfolio Category Page Makes Blog Menu Item Active]]> http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2582 Wed, 04 Dec 2013 13:47:05 +0000 Juanfra Aldasoro Hi 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_parent

We should wait for WordPress to fix this bug 🙂

Best,
Juan.

]]>
http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2588 <![CDATA[Reply To: Visiting a Portfolio Category Page Makes Blog Menu Item Active]]> http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2588 Wed, 04 Dec 2013 14:16:40 +0000 justinnorris Oh 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!

]]>
http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2594 <![CDATA[Reply To: Visiting a Portfolio Category Page Makes Blog Menu Item Active]]> http://nicethemeswp.com/forums/topic/visiting-a-portfolio-category-page-makes-blog-menu-item-active/#post-2594 Wed, 04 Dec 2013 14:43:01 +0000 Juanfra Aldasoro Exactly 🙂

Thanks for your kind words. Have a nice day,
Juan.

]]>