wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

Mobile menue not opening

Open tawanda opened this issue 12 years ago • 6 comments

did as specified, but the mobile menu does not open when window is resized

tawanda avatar Nov 10 '14 15:11 tawanda

Are the buttons ID and nav hooked up? I had an similar issue issue but the issue with my IDs. Care to post your outputted HTML?

kevinruscoe avatar Nov 11 '14 16:11 kevinruscoe

Thanks for responding here is the url of the site im designing

http://siegecommunications.com/clarko/

the html generated is

<code> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation <span class="icon-bar"> <span class="icon-bar"> <span class="icon-bar"> </button>

where do i hook up the ID's

tawanda avatar Nov 11 '14 16:11 tawanda

This issue is usually caused by a JavaScript error. Either your loading the bootstrap JS twice (the bootstrap shortcodes plugin does this) or the JS is not loading correctly. On Nov 11, 2014 9:24 AM, "Tawanda-m" [email protected] wrote:

Thanks for responding here is the url of the site im designing

http://siegecommunications.com/clarko/

the html generated is

Toggle navigation

where do i hook up the ID's

— Reply to this email directly or view it on GitHub https://github.com/twittem/wp-bootstrap-navwalker/issues/146#issuecomment-62572365 .

SideQuestDIY avatar Nov 11 '14 17:11 SideQuestDIY

i have checked and bootsrap is only loaded once, i think the problem is with the nav bar code itself please see here

< nav class="navbar navbar-default" role="navigation"> < div class="container-fluid"> < !-- Brand and toggle get grouped for better mobile display --> < div class="navbar-header"> < button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> < span class="sr-only">Toggle navigation < span class="icon-bar"> < span class="icon-bar"> < span class="icon-bar"> < /button> < a class="navbar-brand" href=""> < ?php bloginfo('name'); ?> < /a> < /div>
    &lt; ?php
        wp_nav_menu( array(
            'menu'              => 'primary',
            'theme_location'    => 'primary',
            'depth'             => 2,
            'container'         => 'div',
            'container_class'   => 'collapse navbar-collapse',
    'container_id'      => 'bs-example-navbar-collapse-1',
            'menu_class'        => 'nav navbar-nav',
            'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
            'walker'            => new wp_bootstrap_navwalker())
        );
    ?>
&lt; /div>

< /nav>

tawanda avatar Nov 11 '14 19:11 tawanda

You have a 404 error on http://siegecommunications.com/clarko/bootstrap/js/bootstrap.min.js.

mindctrl avatar Nov 12 '14 03:11 mindctrl

mindctrl you are legend. there is absolutely no way i would have figured this out on my own. its working 100% now.

Thank you all on this thread for taking the time to help out

tawanda avatar Nov 12 '14 05:11 tawanda