WordPress.org

Forums

2 customs menus, current_page_item (1 post)

  1. boontoony
    Member
    Posted 2 years ago #

    So I have created 2 custom menus, one is the main navigation menu, the other is a sub menu, that only shows directly under the main menu, when on particular page from the main menu (sub menu is made from pages that are the parent item from a page on the main menu). This is so I can have it permanently sit there and not have a hover sub menu.

    I can set the active state for for both menus, however I would like the page on the main menu to also be on its active state when a page from the sub menu has been opened. I realise these are not linked.

    Home
    Projects >> separate submenu, Page 1, Page 2, Page 3
    Contact

    Is this possible? Please advise.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic