Title: Modify theme&#039;s menu error
Last modified: August 30, 2016

---

# Modify theme's menu error

 *  Resolved [Aleix Ruiz](https://wordpress.org/support/users/aleix-ruiz/)
 * (@aleix-ruiz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/)
 * Hi,
    on my menu bar there’s an invisible button link above the word HOME that’s
   makes it look bigger than it should, [http://ratonesgaming.com](http://ratonesgaming.com),
   when you click inspect element on that invisible thing looks like this:
 * `<a href="/"></a>`
    and if you remove it, it fixes the problem.
 * My question is: How do i remove this element permanently? How can i edit my source
   code and delete it?
    Thanks in advance, Regards.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365135)
 * Hi Aleix!
    Is this a custom menu? If so you can go to the menu screen from your
   Dashboard. Dashboard > Appearance > Menus and then seeing you have any extra 
   items listed just in case.
 * If that doesn’t solve it you can try contacting the theme’s author about it as
   it could be in how they designed the navigation/menu structure. If you would 
   like to edit this yourself, be sure to take precautions so you don’t lose any
   modifications by creating a child theme. The function that you would look for
   is `wp_nav_menu`. Often times it may be located in the `header.php` file.
 * I hope this helps you out a bit.
 *  Thread Starter [Aleix Ruiz](https://wordpress.org/support/users/aleix-ruiz/)
 * (@aleix-ruiz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365165)
 * Hi Jose,
 * I looked up every file on theme just to make sure that wp_nav_menu was only found
   on the header.php file.
 * I created the child theme, and I found that on that file surrounding wp_nav_menu:
 *     ```
       <div class="navbar navbar-teal">
       				<div class="navbar-header">
       					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
       					<span class="icon-bar"></span>
       					<span class="icon-bar"></span>
       					<span class="icon-bar"></span>
       					</button>
       				</div>
   
       				<div id="navmain" class="navbar-collapse collapse" role="navigation">
       					<?php
       						wp_nav_menu( array(
       						'theme_location' => 'primary',
       						'depth' => 2,
       						'container' => false,
       						'menu_class' => 'dropdown nav navbar-nav',
       						//Process nav menu using our custom nav walker
       						'walker' => new wp_bootstrap_navwalker()));
       					?>
       				</div><!--/.nav-collapse -->
       			</div><!-- /.navbar -->
       		</header><!-- #masthead -->
       ```
   
 * What’s should i change to modify my problem? Really thanks for help, i have already
   spent like 3 hours triing to solve this xD
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365297)
 * Looks like the extra `<a>` is no longer there. At least by taking a quick look
   at it now.
 * Were you able to sort it out?
 *  Thread Starter [Aleix Ruiz](https://wordpress.org/support/users/aleix-ruiz/)
 * (@aleix-ruiz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365304)
 * sure, i could finally solve it! Somehow the image on top-left side was interfering
   with this, i remove it and the problem was gone, thanks for asking.
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365307)
 * That is super strange but glad to see it resolved!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Modify theme's menu error’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/modify-themes-menu-error/#post-6365307)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
