Contents
You can add navigation menus in any area that uses widgets, like your sidebar or footer. Simply go to Appearance » Widgets and add the ‘Navigation Menu’ widget to your sidebar. Next, add a title for the widget and choose the correct menu from the ‘Select Menu’ drop down list.
How do I add a custom bar in WordPress?
Install via the WordPress Dashboard:
- Login to your WordPress Dashboard.
- Navigate to Plugins, and select add new to go to the “Add Plugins” page.
- In the right side, enter “Storefront Top Bar” in the search input bar, and hit your enter key.
- Click install, and wait for the plugin to download.
How to add class Nav tabs on ul?
In the screenshot, I want to add class nav nav-tabs on UL but it was added on parent div First of all, you need to create a custom navigation menu from Appearance -> Menus. There’s a lot you can read about WordPress Menus. I suggest the following:
Be aware to add isset to $args->add_li_class , however you got Notice: Undefined property: stdClass::$add_li_class if you haven’t set the property in all yours wp_nav_menu () functions. Answer already given here year ago. you can follow this answer with good explanation.
Tough it is a quick fix for one-level menus or the menus that you want to add Classes to all of elements and is not recommended for more complex menus I added a class to easily implement menu arguments.
How to change the menu class in WordPress?
According to wordpress codex changing the menu from ‘menu_class’ => ‘menu’, should change the class of the ul, but instead it changes the class of the div wrapping the ul. I had the same problem, so I changed the word “theme_location” to “name” and it works perfectly.