Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #26147


    I’m still annoyed with this behaviour of the portfolio.

    See post (Purchase code hidden if logged out) -as-active-ancestorparent

    I’d like to keep my parent page of the portfolio activated. Now When you are in a portfolio post it displays the blog as ancestor.


    Please, is their any way to (hard code) so I can say, as soon as a portfolio item is clicked, make this menu ID item as ancestor/active, current, parent…whatever works. Because now my Blog menu becomes highlighted when I’m in a portfolio item, which doesnt make sense at all.

    Thanks a lot in advance!



    I have found a way around it. Instead of using a page, I added a parent category for all portfolio-items as menu item.

    That way I get the archive page and when going to a detail you get a class .current-portfolio-ancestor which can be added to the current menu item styles.

    The filtering you can activate by setting ‘sort’ => ‘yes’ in taxonomy-portflio_entries.




    You can also, manipulate the style of the menu to disable the active menu styling.

    .header_color .main_menu ul:first-child > > a {
    color: gray;
    font-weight: normal;

    Glad you fixed it.



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

The topic ‘Portfolio items create blog parent as active ancestor/parent’ is closed to new replies.