• Resolved rippert

    (@rippert)


    I have searched and found how to enable a static page for my home page, but it creates a second link to home in the navigation bar. To get rid of it I tried making the page a child of another, but that created and invisible link and a visible ‘separator bar’ beneath the main navigation bar at the top – kind of distracting. I’m new to coding, so I created a page named Johnny and searched in all the themes files for the word Johnny in an effort to find out where the code resides that controls what links show up in the nav bar. Can’t find it anywhere. Googling reveals that I should edit the template tag wp_list_pages, but I can’t fine that either. Any help is appreciated!

    rip

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hard to say without seeing your site, but my guess is that there is one link “hard coded” to your home page and another being grabbed from your list of pages. Check your header.php and see if there is a link to “Home” immediately before the call to wp_list_pages

    Thread Starter rippert

    (@rippert)

    Yes there is. Do I just need to delete it? It’s inside this section in header.php:

    <div id="header">
    	<div id="menu">
    		<ul>
    			<li class="current_page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/" class="current_page_item">Home</a></li>
    			<?php wp_list_pages('title_li='); ?>
    		</ul>
    	</div>
    	<!-- end menu -->
    </div>
    <!-- end header -->

    Many thanks!
    Rip

    Thread Starter rippert

    (@rippert)

    My signature above is a link to the site. Sorry – still learning…

    R

    Change the above to this and it should work for you:

    <div id="header">
    	<div id="menu">
    		<ul>
    			<?php wp_list_pages('title_li='); ?>
    		</ul>
    	</div>
    	<!-- end menu -->
    </div> <!-- end header -->

    Thread Starter rippert

    (@rippert)

    It worked. Thanks!

    R

    UPPER CASE vs lower case on nav bar tabs…
    I need some help with the nav bar too. I started the site with a static front page called HOME and a separate BLOG page, ABOUT page and CONTACT page. I put all their names in upper case. On the site, every one comes out upper case OK but the HOME tab keeps showing in lower case! What to do? Where can I edit this please?

    Please post a new topic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘edit navigation bar’ is closed to new replies.