[Resolved] Multiple Custom Menus

Home Forums Support Multiple Custom Menus

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #133499
    Andy

    Hi,

    I need to add a different custom menu to the left sidebar of 2 or more different pages. Is this possible?

    Thanks.

    #133521
    Tom
    Lead Developer
    Lead Developer
    #133563
    Andy

    Thanks for the suggestion I looked into this but it only replaces the primary menu with a custom menu, you cant do the same in a sidebar.

    I’m happy to register new sidebars and menus but I’m not sure how to do this with your theme as it doesnt use different page templates.

    Any further help appreciated.

    #133570
    bdbrown

    You could add the menu widget to the sidebar, set the default to hidden, then display it on specific pages. Something like this using css:

    /* default hide sidebar menu */
    #left-sidebar #nav_menu-2 {
    display: none;
    }
    /* display sidebar menu on specific pages */
    .page-id-2 #left-sidebar #nav_menu-2 {
    display: block;
    }

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    #133572
    Andy

    Thanks, but I need two different custom menu sidebars, unless I misunderstaad your solution.

    #133573
    bdbrown

    Add both menu widgets to the sidebar. Set them both to display:none. Then display either one or the other on specific pages as needed. Does that help?

    #133580
    Andy

    Thanks I think this is going to work, I may also be able to use the Category widget instead of Custom menu.

    #133590
    bdbrown

    Glad I could help. Let us know if you have any additional questions.

    #133597
    Tom
    Lead Developer
    Lead Developer
    #133599
    bdbrown

    Well, that’s even better. No additional css 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.