Within the header, modify the wp_nav_menu
code to include:
'items_wrap' => '<ol id="%1$s" class="%2$s">%3$s</ol>',
Full Menu Code
<?php wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'nav-menu',
'items_wrap' => '<ol id="%1$s" class="%2$s">%3$s</ol>'
)
); ?>
Related Posts:
- Add custom attribute to menu item link using Filter
- Accesibility problems with dropdown menus in twentyten theme or others
- SlickNav – Google Lighthouse Accessibility issue for collapsed menu button
- What are some of your favorite methods for creating an accessible menu?
- Display a portion/ branch of the menu tree using wp_nav_menu()
- Unregister Nav Menu from Child-Theme
- Deleted pages are NOT removed from custom menus?
- Keeping parent menu items active in child pages
- Add Page ID class to nav menu items
- Way to bulk delete menu items in new 3.x Appearance > Menus system?
- Pass a parameter to a menu walker
- Menu is not visible in appearance
- WordPress nav_menu_link_attributes Not Working
- Customize the menu by adding items
- Organizing by super-categories (or nested categories)?
- Adding first and last class to Menu on top level only
- wp_nav_menu log in/out link?
- Add within the output of
- How do I get my wp_nav_menu single category page to highlight the parent?
- Theme menu in Admin Panel
- How to target children of child pages
- How to insert custom code into wp_nav_menu structure?
- How to add custom menu item on plugin activation?
- Get number of root elements in walker class
- Did upgrading from 3.3 to 3.3.1 introduce breaking changes in the menu navigation?
- Operable default menu *and* custom 3 menu
- WordPress menu permalink redirects to wrong page
- HTML to WordPress Menu convert
- How to change menu URLs to hashes?
- How to create this Custom Walker Menu
- create a 2 row menu in wordpress
- How to handle many different menus?
- Why is wordpress forcing https link generation?
- wp_page_menu not working right?
- using OOP approach to create plugin but stuck at making hyperlinks to work
- Adding menu items?
- Adding existing links to custom navigation menus?
- How to get rid of the home link in nav menu?
- How to truncate menu label in wordpress?
- Is it possible to add a dynamic link in the main navigation in a child theme
- How to change menu structure?
- magic “MENU” button under Twenty Twelve theme
- Remove first separator in wp_nav_menu
- wp_nav_menu check both hierarchy fail?
- Edit the (automatic) HTML layout of nav menus
- Add custom path to url to specific pages
- How do add a menu with levels within page [closed]
- Hide menu item when users are logged in/out
- Get parents child pages
- menu-item class missing on wordpress menu
- How to add scroll IDs to WordPress menu anchors
- how to add home icon instead of text in wordpress menu
- Active class to current link
- Making pages in a menu appear conditionally
- Modify the output of wp_nav_menu in a very specific way?
- Display pictures instead of text in menus
- how to check if given page is active page
- how to set the link in wordpress such that on clicking it doesn’t open another page but go to the bottom of same page
- How to add social buttons like facebook and twitter in the footer of a theme?
- WordPress Menu – creating a fake link [closed]
- How to add an archive page to WordPress menus (nav_menu)?
- Add div content to my already existing menu
- Add category label for appearance > menus items
- Custom items for Menus
- sidebar navigation problem with child pages not all display.?
- How to point menu to my homepage
- dot.com/car1 does work, but dot.com/transport/car1 doesn’t work
- code to add an extra selection to the menu editor
- calling JS to custom menu design
- WP pages content is missing in frontend
- Active menu item state on all menu items
- Dashicons not showed for admin menu
- How to select particular menu position in wordpress?
- Menus not visible in Appearance after being registered
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Cannot add home page url to menu with #
- Accidental reverse order of menu items in one menu
- Having an issue with wp_nav_menu displaying custom navigation
- Add dynamic content block to nav section generated by custom walker
- Customizing label/title output of admin nav_menu selecter
- Extend Individual Menu on Page Function to individual Submenue on Page Function?
- Menu administration, how to allow special charachters
- How to avoid website url appending problem in wp site?
- Create custom page and custom menu
- Get first menu item of custom menu
- How can I modify wp_nav_menu with walker?
- menu items outside of blog
- Walker for menus
- Bought custom navigation menu from codecanyon, how to change feature.php?
- Custom menu linking to page not found
- How to insert date in topNav
- Change sub-menu css class
- How to add an tag when a menu item is a dropdown(or has a sub-menu) [duplicate]
- Remove “Next Post” in nav_menu
- How to display a submenu as a popup when clicking a button?
- Menu not Showing on Mobile or While the page is shrinked
- My Menu Disappears on my Custom Link Homepage on Mobile
- How do i add logo in wordpress studiopress (glam theme)?
- Add A Menu Item To A WP_Nav_Menu Navigation via PHP Function
- How to change mobile menu (toggle) icon in WordPress – Full Site Editing?