• I’m trying to call different menus on different pages, and I can make it work using the wp_nav_menu() funtion.

    However, I can’t get it to style correctly with my bootstrap-based theme.

    Typically, the wordpress code would be:
    <?php wp_nav_menu( array('menu' => 'menu-name' )); ?>

    But my menu has this:

    <?php wp_bootstrap_main_nav(); // Adjust using Menus in WordPress Admin ?>

    I’ve tried adding this, but it still calls the main menu:

    <?php wp_bootstrap_main_nav( array('menu' => 'menu-name' )); // Adjust using Menus in WordPress Admin ?>

    Any ideas? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried using Custom Menus Widget and widget visibility?
    In “appearances / Menu” build the menu you need.

    Then go to “widgets” Use the Custom Menu Widget.

    Open it, select the custom menu you made, then select “visibility”

    select where you want this menu to go / which page/pages/post/categories and so forth. Good Luck ??

    Thread Starter gregfielding

    (@gregfielding)

    That would work if the menu was in the sidebar, but this needs to go in the header, replacing the main navigation.

    I could just build custom, bootstrap menus on each page, but this would definitely be easier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Call Different Meny On Page’ is closed to new replies.