This is what solved the issue:
<?php wp_nav_menu(array('theme_location' => 'header','menu_class' => 'header__nav'));?>
Related Posts:
- Removing container from wp_nav_menu not working
- Check if page is in a certain menu
- Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)
- Show current navigation path from menu
- Is it possible to add classes to list items in wp_nav_menu()?
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Exclude one item from wp_list_pages( $args );
- different Menu position showing same menu
- How to add bubble count in WordPress wp_nav_menu menu?
- Add class to active top level (grandparent) menu item
- Page not appearing in navigation bar
- Extend WordPress REST API to show slugs for menu items
- WordPress Custom Menu Widget Style
- Output menu navigation in php file
- Custom Post type menu highlighted in the archive/post
- Unclickable Menu Item Label in Custom Menu with Clickable Children
- Remove Metabox from Menus screen
- Sort wp_nav_menu() by menu order
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- How to fix “Supplied nav_menu_item value missing property” after update to WordPress 5.0
- How to give custom classes to the WordPress Menu widget
- No “current-menu-ancestor” class added when browsing an archive page
- Problems Displaying Multiple WP Menus
- How to add programmatically all pages and children to backend menu
- View h2 content tags of a page in sub menu
- How to add custom classes to more than one separate menu’s a link in wordpress?
- Separator for custom nav menu
- add_submenu_page function to show videos table
- Menu item with no page, but with dropdown
- How to test if blog page is active
- Create a MegaMenu using a walker and the start_lvl function
- Nav and logo loading each time causing menu to move JointsWP – Foundation 6
- WordPress Plugin menu position overwrite other item
- Change submenu markup
- Get page slug/id from position in menu
- Two different “Home” items in custom menus dashboard section
- How to use a start_el variable in start_lvl
- list category posts under its item in menu
- How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
- Using _s theme, menu changes do not affect header menu
- Change class-name on “current_ancestor” in wp_nav_menu
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Show children (sub-navigation) of active menu item only
- Make menu items open in new tab/page
- How do I hide “Pages”, “Media”, “Comments”….for editor role?
- how to change the color of menu text wordpress?
- How to get submenu dropdown with images?
- Walker Class: Output Parent Description and Featured Image right after sub-menu?
- Generate Navbar In WordPress
- Showing home button in a specified menu
- Odd spacing in Navigation Bar [closed]
- wp_list_pages Hierarchical Help
- How to avoid the and which added when custon menu widget is used
- An alternative to WordPress’s built-in menu functionality
- Add session or cookie to remember last menu location
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- pre_get_posts fix to show menu on CPT Archives broken WP 6.0
- How to change how WordPress renders navigation menu on Block Themes
- Problem with links once in portfolio item
- How to link current logged-in user to their author page via URL (Beginner)
- Top bar menus not showing on mobile
- Add Different Class on Different Ul in twenty-twentyone theme
- How to create a link-less parent (top level) menu item that doesn’t use an anchor tag
- wp_nav_menu container style args
- Structuring Nav Menu and Background Custom page (Help)
- Nav_walker add id to dropdown ul
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Sub Menus will not work
- Active Current Menu – Adding class to child theme
- I can’t correctly display menu
- WPML CMS Nav and Custom Nav_Walker Undefined Property Notices [closed]
- Add data-track to links in menu
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Check in walker if current page is descendant
- Add a non-dynamic phrase/character after a page title?
- Primery Menu Configuration problem
- how to display wordpress navbar with top menu outside wordpress system
- Active page link not getting class assigned
- Menu not saving in dashboard
- Menus not showing in the admin menu, after save
- Customize Walker_nav_menu to show posts if item is category
- How do i keep my current page menu highlighted on pagination?
- Add Protocol to Custom Menus
- How to handle change the appearance of ‘categories’ box on dashboard?
- Pick out specific menu item from code
- Show All Children of WordPress Menu
- menu doesn’t show in different languages
- How can I stop wp_nav_menu from returning extraneous root links?
- How to make an anchored page in a navigation menu tab
- Change menu item order
- Menu System: Custom Links
- nav tag wrapping around dropdown
- Resolve the debugs
- Formatting WordPress Menus (without bullets, inline with text)
- Change Menu Order
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Submenu items not working anymore
- Icon not shown in Dropdown menus in Twenty Seventeen Theme