• Resolved tastymouse

    (@tastymouse)


    When I click on a portfolio item the page with the project opens. However the main menu item, WORK, doesn’t have a ‘current’ or ‘active’ class so the visitor doesn’t know that the project is posted under WORK. How can I add such a class?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, a current_page_ancestor CSS class would be added to the Work menu item if you added those Portfolio Projects to it in a submenu. Right now there isn’t any association between that menu item and Speckled.

    There might be a way to do that using a Child Theme and then some php scripting to run some if-else test, but I’m not sure what that would look like.

    If you added all of your “work” projects on a submenu under work, that submenu could be hidden with CSS, if you did not want the submenu to show.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Come to think of it, I believe this would be more of a Javascript thing rather than php.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Ok, I’m about brain dead it appears. Try setting “work” as a parent of the other project types listed on the work page.

    Thread Starter tastymouse

    (@tastymouse)

    “work” is set as parent item.
    I added a second level type, sculpture, as sub-item and than it does work.
    Thanks, Tom

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Cool, It might be good for visitors to also have the different Project Types listed on the Work Menu as well. It gives them another way to get to your content.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No ‘parent’ class in menu with portfolio’ is closed to new replies.