Title: Fixing a Broken Header.php Link
Last modified: August 20, 2016

---

# Fixing a Broken Header.php Link

 *  [Ryan.collins19](https://wordpress.org/support/users/ryancollins19/)
 * (@ryancollins19)
 * [14 years ago](https://wordpress.org/support/topic/fixing-a-broken-headerphp-link/)
 * Hello everyone! Thank you in advance for taking the time to help me with this
   issue – I really appreciate it to say the least.
 * I am trying to fix a broken link and am quite stuck. It seems like the past webmaster
   may have coded a custom menu into the header.php of [scanning123.com](http://www.scanning123.com)
 * If you click on the “Blog” tab at the top right of the homepage, you will notice
   that it does not link to the blog. I need to fix this so it does link to the 
   blog, which can be found at [http://www.scanning123.com/category/blog/](http://www.scanning123.com/category/blog/)
 * So far I have found the following in the header.php file – problem is that I 
   have no idea how to change it so the “blog” tab links to the actual blog.
 *     ```
       <ul>
             <li><a href="<?php bloginfo('siteurl'); ?>/blog" class="blogtab">Blog</a></li>
             <li><a href="<?php bloginfo('siteurl'); ?>/pricing" class="pricingtab">Pricing</a></li>
             <li><a href="<?php bloginfo('siteurl'); ?>/features" class="featurestab">Features</a></li>
             <li><a href="<?php bloginfo('siteurl'); ?>/how-it-works" class="howitworkstab">How&nbsp;it&nbsp;Works</a></li>
             </ul>
       ```
   
 * Any ideas?
 * Thank you so much and I am happy to provide you with more information if you 
   need it.
 * Take care,
 * Ryan

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

 *  [Amy Hendrix (sabreuse)](https://wordpress.org/support/users/sabreuse/)
 * (@sabreuse)
 * [14 years ago](https://wordpress.org/support/topic/fixing-a-broken-headerphp-link/#post-2757083)
 * You’ll need to change the bit that says
 * `<a href="<?php bloginfo('siteurl'); ?>/blog" class="blogtab">`
 * to read
 * `<a href="<?php bloginfo('siteurl'); ?>/category/blog" class="blogtab">`
 *  Thread Starter [Ryan.collins19](https://wordpress.org/support/users/ryancollins19/)
 * (@ryancollins19)
 * [14 years ago](https://wordpress.org/support/topic/fixing-a-broken-headerphp-link/#post-2757218)
 * Thank you so much Amy! It worked!

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

The topic ‘Fixing a Broken Header.php Link’ is closed to new replies.

## Tags

 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Ryan.collins19](https://wordpress.org/support/users/ryancollins19/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/fixing-a-broken-headerphp-link/#post-2757218)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
