Support » Fixing WordPress » Nav menu not showing up correctly
5 years, 6 months ago
Hey there, how do I get rid of the first file separator before the HOME link on my link menu? Here’s the website:
Head over to your admin panel > appearence > editor.
Inside your header.php file there is an <li>|</li> tag.
Within this tag is the file seperator. Simply delete the first
<li>|</li> underneath <div id="menu"> and it will be gone.
Emphacy, I don’t see it. Earlier I removed
<li><a href="<?php echo get_option('home'); ?>/" id="i_home">Home</a></li> from the file.
<li><a href="<?php echo get_option('home'); ?>/" id="i_home">Home</a></li>
Now it reads:
Hmmm, it may be in one of your other theme files and not the header, I can only find so much info by going to your web page.
Head back into your editor and press CTRL+F to bring up the find tool, search for div id=”menu” in each theme file to find which one it’s in.
It’s there, you just need to find which file the code is in.
Strangely, I did not find it in any other theme files. Firebug also showed me what you’re looking at. Hmmm, the only thing I can think of is that it has something to do with <?=wp_list_pages2()?>. Does that be default somehow display a “|”?
Got it. The problem was with the <?=wp_list_pages2()?> in the functions.php file.
div id="menu" was not there, however, <li></li> was, under function wp_list_pages2.