• Resolved evoldesign

    (@evoldesign)


    HI,
    first thxs for your theme …

    just one thing : i cannot add another menu (ei:topmenu) like so

    <?php wp_nav_menu( array( 'theme_location' => 'Topmenu', 'menu_class' => 'menu' ) ); ?>

    Another question : where is “managed”
    <?php dazzling_header_menu(); ?>

    thxs a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Silkalns

    (@silkalns)

    Did you first registered menu using register_nav_menus via functions.php?

    Afterwards you should create by taking this code as example which is located in extras.php file that you can find in theme folder – inc.

    // header menu (should you choose to use one)
    function dazzling_header_menu() {
            // display the WordPress Custom Menu if available
            wp_nav_menu(array(
                        'menu'              => 'primary',
                        'theme_location'    => 'primary',
                        'depth'             => 2,
                        'container'         => 'div',
                        'container_class'   => 'collapse navbar-collapse navbar-ex1-collapse',
                        'menu_class'        => 'nav navbar-nav',
                        'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
                        'walker'            => new wp_bootstrap_navwalker()
            ));
    } /* end header menu */
    Thread Starter evoldesign

    (@evoldesign)

    yes, thank you very much .. gonna do it right now …
    best regards

    🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cant add wp_nav’ is closed to new replies.