• Hi
    I’ve built a test site based using bootstrap3 – however the toggle doesn’t work and I can’t find any errors the JS script is installed correctly and I’ve added the code to the functions file linking to the WP_nav_walker file available on GitHub.

    the header file code is:
    <?php
    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())
    );
    ?>

    and I’ve added this to the functions doc:
    // Register Custom Navigation Walker
    add_action( ‘init’, ‘register_my_menu’ );
    require_once(‘wp_bootstrap_navwalker.php’);

    conecting to wp_bootstrap_navwalker.php

    any help or advice greatly appreciated – I’ve been trying to fiz this issue for 3 hours site link here: https://creative-media.info/WarringtonBonsai/

    cheers
    paul

  • The topic ‘Boostrap3 drop down toggle not working’ is closed to new replies.