Visiting a Portfolio Category Page Makes Blog Menu Item Active

This support request was posted in Netelier by justinnorris

Request ID #2580 In Progress
  • 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

    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.

    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!

    Juanfra Aldasoro

    Exactly 🙂

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server