GithubHelp home page GithubHelp logo

Comments (8)

PlanBrewski avatar PlanBrewski commented on September 25, 2024

Greetings @cyarema,

This is an interesting one as I can't say I have seen that before.

My first instinct was that there is a plugin conflict as I see by viewing the source there are two different versions jQuery loading, but after looking at the HTML it seems that the walker is not outputting the menu items at all. Very odd indeed.

Could you let me know:

  • The version number of the walker in use
  • Your version of wordpress

Also, could you share the code of the file your menu is declared in (usually header.php)

from wp-bootstrap-navwalker.

cyarema avatar cyarema commented on September 25, 2024

WP 3.6.1 // Jquery 1.10.1 (declared in footer) // Walker: Version: 2.0.4
Menu Code:

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <?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())
                    );
                ?>
            </div>
        </nav>

I thought it was weird only working when logged into WP

from wp-bootstrap-navwalker.

claudiosanches avatar claudiosanches commented on September 25, 2024

Remove the jQuery in the Footer!
Already have WordPress jQuery on head.

from wp-bootstrap-navwalker.

cyarema avatar cyarema commented on September 25, 2024

Nope that didn't do it . Thought it would be that easy.

from wp-bootstrap-navwalker.

claudiosanches avatar claudiosanches commented on September 25, 2024

It's easier if you fix your site!
Already have jQuery of the WordPress in the head.
If you leave this jQuery in the footer will break with other plugins and many other things.

Simple as that.
You're breaking everything!

from wp-bootstrap-navwalker.

claudiosanches avatar claudiosanches commented on September 25, 2024

Ahh important detail there!
You are using WooCommerce.
And the menus "Change Password", "View Order" and "Edit My Address" works only logged!!!

Learn how to use WordPress and WooCommerce would be cool.
Then of course to fix jQuery in your Footer!

from wp-bootstrap-navwalker.

cyarema avatar cyarema commented on September 25, 2024

You are so right. Sorry, I hadn't made any real pages yet and was just working out bootstrap >> wordpress kinks.

from wp-bootstrap-navwalker.

PlanBrewski avatar PlanBrewski commented on September 25, 2024

Haha, as a WooCommerce user myself I should have caught that! Thanks @claudiosmweb!

from wp-bootstrap-navwalker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.