@user1632018 reports that the problem has been solved:
I removed both the
<ul>
and<li>
tags and now the navigation is in its
proper location:
<div class="header">
<div class="nav">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
Related Posts:
- Where is definied the theme location for the main menu in a WordPress template?
- Some doubts about WordPress handle the horizontal main menu visualization
- Dynamic nav menu with icons [closed]
- Menu items description? Custom Walker for wp_nav_menu()
- How to add posts to custom menus?
- Display Menu Name using wp_nav_menu
- How to limit wordpress menu depth in admin panel
- Why doesn’t default WordPress page view use force_balance_tags?
- How to determine if custom menu is active?
- How do I check if a menu exists?
- How to use logout function on custom menu link?
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- How to add menu support to a theme?
- Problem with registering menus – What to do when other solutions aren’t working?
- Add a #hash to the links in my custom menu
- How can i change menu link when page content empty?
- Extend walker – navigation, adding data attribute to a tag
- How to add (css) classes to only one wp_nav_menu()?
- Replace Home with image link inside custom header menu
- Displaying wp menus by name without using theme locations
- How do I add a post to a menu
- how to change WordPress menu markup/classes
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to set dimensions of the post thumbnails (featured images)
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How do I highlight the menu for a child page?
- how to set more than one menus to the same theme location
- Custom Nav Walker to show siblings and children of current branch?
- Second menu not showing
- How to remove class attributes from custom menu markup?
- menu behavior is not as expected
- Part of Menu Item Hidden on Header Menu
- How to prepare the HTML for WordPress [closed]
- which is the best way to customize nav-menu-template.php?
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- WordPress navbar with logo in middle [closed]
- My Admin bar covers my sticky navbar [closed]
- WordPress is adding margins and padding to my custom menu?
- Menu item added in wp_nav_menu_items filter is never highlighted
- wp_post->post_parent object returning 0
- multisite: global menu containing network site links?
- How to make theme elements customizable in wordpress?
- Single-level menu option? Another way?
- Using a page as home, how do I prevent nav from setting both home and page links active?
- How can I wrap html around the output of the_time function?
- Problem with empty class attributes when running a filter on nav_menu_css_class
- How to append to menu items selectively
- Custom Nav Walker Trouble
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Show woocommerce categories on my theme menu styling
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Admin: sub menu doesnt display under apperance when activate my themes
- Is it possible to include an HTML flat-file website inside a WordPress theme?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Create custom xml file for demo content for custom theme?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Random white space before doctype
- How to add menù section to my WordPress template?
- wp_nav_menu and its fallback
- Theme development – Automatically menu creation
- How to safely return the HTML?
- Theme development: How to add CSS classes to menu items?
- Navbar- disable “onClick” drop-down
- How to conditionally add a wp_filter
- my single.php is mixup on some post for no reason
- Remove/Hide a Widget on a Custom Template
- Custom menu: Link names
- Parent/Child pages
- How to substitute old wordpress menu by wp 3 menu the right way?
- Why do sticky posts show in this menu?
- Archives and Categories in Custom Menu
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs
- 3 Level Menu Navigation (3rd Level not displaying)
- Use instead of for wp_nav_menu()
- Theme: dropdown hover menu not showing up in IE/Edge
- Pages not displaying as sections on static page
- Whether an tag is required in header?
- Menu names not getting translated
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Need help with adding custom wordpress menu and sub-menu
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- wp_nav_menu custom walker class
- Fallback dosen’t work when not using ‘menu’ attribute
- How to add custom nav_menu_css_class to certain menu only?
- WordPress doesn’t recognize submenus as so I can’t style them properly
- Primary Menu Showing All Pages With No Sub-Nav
- How to add drop symbol to parent nav items which have child
- How to add custom field option with menu?
- WordPress 3.9 two menus in same position?
- Why the slideshow is not shown in my theme?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- How can I change the title of the Home link in the navigation bar?
- How to make navigation a list without a plugin? [duplicate]
- How can I get rid of the distance when I’m using list-style-type: none? [closed]
- How to highlight current menu bar base on the URL?
- Is there a way to prevent wp_head from outputting self-closing tags?