Coder Social home page Coder Social logo

Comments (4)

PlanBrewski avatar PlanBrewski commented on May 11, 2024

Interesting... I will definitely take a look ook at this. Just to confirm I have your scenario correct.

You're saying that you are using one menu defined in the WordPress admin and calling via two separate wp_nav_menu definitions one with a depth of 1 and another with a depth of 2?

from wp-bootstrap-navwalker.

jerrylopez avatar jerrylopez commented on May 11, 2024

I think that's exactly what he means, so he has the main menu with the depth of 2 and the footer menu with the depth of 1 to have those items link back to their corresponding pages. The one with the issue is the item that has children in this case the "our-company" item. I'm thinking that he can just add && $args['depth'] != 1 to the if statement on line 84 (line number is from the file in this repo). What do you think?

from wp-bootstrap-navwalker.

PlanBrewski avatar PlanBrewski commented on May 11, 2024

I am working on an update for this. As much as I am not a fan of top level pages for dropdowns, I absolutely agree that this is how it is expected to work.

After some thought, making these changes it has bigger implications for other sections of the script and that will require a more robust implementation.

from wp-bootstrap-navwalker.

pattonwebz avatar pattonwebz commented on May 11, 2024

This is a very old issue thread and a future branch has the flat menus issue fixed.

Closing this issue.

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.