Why does my nav bar appear twice?
-
I currently have my nav links listed in my header. I’d like to remove them from there and create a real navigation bar below the header.
In my current header.php file, I have this code that creates my nav links:
<div class=”container”>
<div class=”header”>
/”><img src=”https://www.michaelgaither.com/home/wp-content/uploads/2011/12/new_banner_greyscale.png” alt=”Michael Gaither” width=”364″ height=”200″ />
<h1>/”><?php bloginfo(‘name’); ?></h1>
<h2><?php bloginfo(‘description’); ?></h2> <p><b></b>HOME / MUSIC / VIDEO / CALENDAR / GALLERY / PODCAST / PRESS KIT / CONTACT</b></p>
<br class=”clearfloat” />
<!– end .header –></div><br class=”clearfloat” />In my backup header.php file, I have this original text:
<div class=”container”>
<div class=”header”>
/”><img src=”https://www.michaelgaither.com/home/wp-content/uploads/2010/07/michael-gaither-header.jpg” alt=”Michael Gaither” width=”237″ height=”169″ />
<h1>/”><?php bloginfo(‘name’); ?></h1>
<h2><?php bloginfo(‘description’); ?></h2>
<br class=”clearfloat” />
<?php get_template_part( ‘nav’ ); // Navigation bar (nav.php) ?>
<!– end .header –></div><br class=”clearfloat” />Problem: When I replace the current header text with my backup text, my nav links appear twice. I think something is calling the nav links twice, but I can’t find it.
My website is at https://www.michaelgaither.com/home.
Thanks for any help,
– Michael
- The topic ‘Why does my nav bar appear twice?’ is closed to new replies.