It’s simple just you need to add items_wrap
parameter and add or edit class attr:
wp_nav_menu( array(
'theme_location' => 'top-menu',
'container' => false,
'items_wrap' => '<ul class="nav your_custom_class">%3$s</ul>',
));
Related Posts:
- Adding an Arbitrary Link to the Admin Menu?
- How do I add nested categories to drop-down menu in twenty-eleven?
- Show menu item description with line breaks
- Remove/Disable “Automatically add new top-level pages to this menu”
- Which settings/options are saved on a theme-basis and how does this affect theme-switching?
- WordPress Add javascript:void(0); to menu link item?
- Does WordPress create mobile menus automatically?
- Programmatically create and place a nav menu in a theme location?
- Create search form in menu as in Twenty Fourteen theme
- Why is my menu not ordered properly?
- My menu bar dissapeared with autooptimize [closed]
- Cant add menu items with my theme
- How to override the theme home page?
- How to remove menu installed in wp-admin by a theme? [closed]
- Change submenu markup
- Change hyphen/dash for vertical line in menu [closed]
- How should I build a custom menu walker for this setup?
- How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
- How to override menu markup?
- Want to add different text after each menu item
- Automatically Display Sub Menu
- Menu separator appearing on next line
- Full screen nav menu block with avada theme
- How to hide the menu item created by the theme in WordPress admin panel?
- Creating custom menu with custom themes
- Removing Submenu from Menu
- Efficient wp mobile menu
- How to show submenu of any page in main menu
- adding pages in underscores.me theme
- Structuring Nav Menu and Background Custom page (Help)
- How to work with a custom theme that someone else created before me? (details below)
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- WordPress Menu Navigation links not working
- Menu doesn’t open on mobile
- I can´t make the menu unclickable in an easy way
- WordPress theme editor not showing
- Making my main menu a hamburger menu on all platforms
- menu change after theme change
- menu mobile show up even i in desktop mode in Newspaper Theme
- All custom links suddenly lack href attributes
- Hide menu theme location for certain capabilities?
- Making wordpress menu horizontal [closed]
- Add a Submenu from Another Submenu in a Custom Theme
- wp_nav_menu in 3.7 add name class nav navbar-nav
- how to keep theme background image, menu or site header image while moving site in sub directory?
- Make title bar collapse when scrolling
- How to add or remove borders in navigation menu?
- Customizing Responsive Themes Menu [closed]
- Some informations about the use of statics pages in WordPress
- How can I added the post’s Categories to the site’s top menu (like a page)?
- The menu jumps a few pixels after the website loads
- How do I add a search box to the nav menu?
- How to get IDs for objects in menu branch?
- New post notification in wp_nav_menu
- Add a .last class to the last in each ul.sub-menu
- How to make pages metabox display all hierarchy in menu admin?
- Select menu on browser resize
- How to retrieve depth of menu into template
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to add parent element’s title to nav menu’s child?
- Show link to add menu
- Change HTML structure for custom menu in sidebar
- Highlight current category, when using get_categories
- Menus like a CMS
- Hide menu item in certain condition
- Get top items number from wordpress menu
- Can I insert elements anywhere into the results of wp_nav_menu()?
- wp_nav_menu() with multiple Class
- Grey out nav buttons unless is_user_logged_in()
- burger on mobile
- Hierarchical menu nesting problem with jQuery targetting
- ‘Users’ and ‘Appearance’ have disappeared from dashboard menu [closed]
- 2 Different Nav Menus Have Same Name in WP-Admin
- Creating a Mega Menu
- register_nav_menus() won’t register menus
- How to change the color of a menu item [closed]
- Where is my menu editor
- wp_nav_menu not displaying the right way
- WordPress Menu adds an unwanted slash before anchor
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- How to undo the last changes to a custom menu?
- Add menu headings to WordPress sub menus
- Getting the WordPress custom menu titles and outputting them in a theme
- Second Level Menu
- Different Menus based on Category Page
- current-menu-item not apllying with wp_nav_menu() on ajax
- Custom link with checkbox that adds additional word to checked menu items
- Hide a menu (navigation bar) on all posts
- Parent Menu Item Requires Two Clicks for Mobile Device
- Is it possible to have submenu outside of menu element? I dont want submenu to be a child of menu
- Product categories are mixed when creating menu
- Add a menu item to the logged in users author page?
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Remove link from Page name in navigation bar
- Prevent Menu Shortcode From Formatting
- Setting up menus before making a template live
- Is it possible to add a superscript trademark symbol to a menu?
- Creating a Horizontal menu
- I want my homepage navbar to have different styling to the rest of my site, how can I do this?
- How to change mobile menu (toggle) icon in WordPress – Full Site Editing?