Questions tagged [wp-nav-walker]

116 questions
70
votes
15 answers

How to add Class in
  • using wp_nav_menu() in Wordpress?
  • I am using wp_nav_menu($args) and I want to add my_own_class CSS classname to the
  • element. I'd like to get the following result:
  • Link How to do that?
  • Ayyaz Zafar
    • 2,015
    • 5
    • 26
    • 40
    27
    votes
    6 answers

    wp_nav_menu - add class on UL

    I am learning wordpress together with bootstrap and somehow I can't add class on UL tag. In the screenshot, I want to add class nav nav-tabs on UL but it was added on parent div $defaults = array( 'menu_class'=> 'nav nav-tabs', …
    JunM
    • 7,040
    • 7
    • 37
    • 58
    5
    votes
    2 answers

    Bootstrap 4 navwalker - multilevel menu

    I'm using this nav walker in my Wordpress project. I want to create multilevel menu, for example. What I need to change to get it work? Or maybe is it another walker for BS4 with multilevel menu support? Menu Item - Sub menu -- Sub menu item -- Sub…
    MMPL1
    • 533
    • 7
    • 21
    3
    votes
    3 answers

    Two-part Bootstrap navigation menu with logo in the center

    I am making a dynamic wordpress links in navigation bar using nav_walker. How can i implement center something like this in wordpress…
    Jc John
    • 1,799
    • 2
    • 34
    • 69
    2
    votes
    1 answer

    Current level navigation in Wordpress

    I have a 3 level navigation: Home > submenu1 >> sub3 > submenu >> sub4 >> sub5 // current page About > about2 >> sub6 > about3 >> sub7 I am trying to get each…
    Luc Laverdure
    • 1,398
    • 2
    • 19
    • 36
    2
    votes
    0 answers

    WordPress - Display categories, duplicate parent item and show as a child if there are children

    I'm having issues with customising the Custom Walker. What i'm trying to do is create an accordion menu where the first parent opens up the child list which also as the parent repeated so it can be clicked on. Parent 1 - Parent 1 - Child 1 -…
    2
    votes
    1 answer

    Issue on Adding A Class to Bootstrap Navbar Walker Dropdown in WP

    Using Bootstrap 3 and Navbar Walker I am able to create dynamic dropdown on the Bootstrap and WP template but I need to add .dropdown-menu-left to the .dropdown-menu class, as well. As you can see I tried this by addig this line 'dropdown_class' …
    Behseini
    • 6,066
    • 23
    • 78
    • 125
    2
    votes
    1 answer

    Template part not appended after menu element

    I am using the wordpress walker class to append a template part after a menu li, however it is injecting the template parts above the entire menu structure. Here is what I've got class bt_menu_walker extends Walker_Nav_Menu { public function…
    Chris
    • 767
    • 4
    • 8
    • 22
    2
    votes
    1 answer

    Convert responsive WordPress
      menu to