WordPress.org

Ready to get started?Download WordPress

Forums

Boostrap3 drop down toggle not working (1 post)

  1. designerwarrington
    Member
    Posted 5 months ago #

    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: http://creative-media.info/WarringtonBonsai/

    cheers
    paul

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by designerwarrington
  • This topic is not resolved
  • WordPress version: 3.8.1