Getting extra a tag in first element of wp_nav_menu li
-
I am new to wordpress theme development.
<nav class="site-nav"> <?php $args = array( 'theme_location' => 'primary' ); ?> <?php wp_nav_menu( $args); ?> </nav>
But in html it is showing an extra a tag
<ul id="menu-primary-menu-links" class="menu"><a href="https://localhost/learn"></a><li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><strong><a href="https://localhost/learn"></a></strong><a href="https://localhost/learn/portfolio/">Portfolio</a></li> <li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-6 current_page_item menu-item-18"><a href="https://localhost/learn/about-us/" aria-current="page">About Us</a></li> <li id="menu-item-20" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20"><a href="https://localhost/learn/contact-us/">Contact Us</a></li> </ul>
what I am missing. In my menu configuration I have added only 3 pages. so I am not expecting this extra a element.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting extra a tag in first element of wp_nav_menu li’ is closed to new replies.