WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Nav menu not showing up correctly (6 posts)

  1. nickandrea19
    Member
    Posted 2 years 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:

    http://www.stuandthegurus.com

    Thanks.

  2. Emphacy
    Member
    Posted 2 years ago #

    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.

  3. nickandrea19
    Member
    Posted 2 years ago #

    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.

    Now it reads:

    <div id="menu">
    		<ul>
    
    			<?=wp_list_pages2()?>
    		</ul>
    	</div>
  4. Emphacy
    Member
    Posted 2 years ago #

    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.

  5. nickandrea19
    Member
    Posted 2 years ago #

    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 "|"?

  6. nickandrea19
    Member
    Posted 2 years ago #

    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.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic