Title: Extra code being added to HTML
Last modified: August 19, 2016

---

# Extra code being added to HTML

 *  [wisegenius](https://wordpress.org/support/users/wisegenius/)
 * (@wisegenius)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/)
 * On visiting a blog I designed for a client, I noticed that the main navigation
   was out of place. On checking the HTML using Firebug in Firefox 4, I came across
   some extra code (Links)that had been added to the code.
 * I’ve doubled checked the header.php file for the blog & everything is as it should
   be.
 * Website is [http://www.sunflowerbloom.co.uk/blog](http://www.sunflowerbloom.co.uk/blog)
   Extra links are those linking back to index.htm:
 * _[please mark your code using the code button or backticks]_
 *     ```
       <body ...
       ...<div id="header">
       <h1>
       <a href="http://www.sunflowerbloom.co.uk/index.htm"></a>
       </h1>
       <a href="http://www.sunflowerbloom.co.uk/index.htm">
       <ul id="main_nav">
       </a><a href="http://www.sunflowerbloom.co.uk/index.htm"> </a>
   
       <li>
       <a href="http://www.sunflowerbloom.co.uk/index.htm"></a>
       <a href="http://www.sunflowerbloom.co.uk/about.htm">About Us</a>
       </li>
       ```
   
 * Can’t understand why this is happening! Anyone able to help?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/#post-2007017)
 * what is ‘out of place’?
    do you mean that the ‘blog’ link is one row lower? that
   is caused by the fixed width in here:
 *     ```
       /*Navigation*/
         #main_nav {
       	  height: 40px;
       		left: 490px;
       	  position: absolute;
       		top: 15px;
       		width: 480px;
       		}
       ```
   
 * using firefox as well, i see this in the html in the browser (no exra links):
 *     ```
       <ul id="main_nav">
       				  <li><a href="http://www.sunflowerbloom.co.uk/about.htm">About Us</a></li>
       					<li><a href="http://www.sunflowerbloom.co.uk/start.htm">Getting Started</a></li>
       					<li><a href="http://www.sunflowerbloom.co.uk/fee.htm">Fees</a></li>
   
       					<li class="page_item page-item-5"><a href="http://sunflowerbloom.co.uk/blog/contact/" title="Contact Us">Contact Us</a></li>
       					<li><a href="http://www.sunflowerbloom.co.uk/blog">Blog</a></li>
       				</ul>
       ```
   
 * can you post the code of header.php ?
    (please use the [http://pastebin.com/](http://pastebin.com/))
 *  Thread Starter [wisegenius](https://wordpress.org/support/users/wisegenius/)
 * (@wisegenius)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/#post-2007040)
 * Here is the code of header.php:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please do **not** repost the code but use the [pastebin](http://wordpress.pastebin.com/)
   instead.]_
 * HTML does appear using “View source” as you say, but when using Firebug, the 
   extra links are appearing. Basically extra parts of the header area have become
   links, linking back to the website homepage (not WordPress).
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/#post-2007061)
 * > Basically extra parts of the header area have become links,
 * which parts are these exactly – apart from the linked sunflower image?
 * i inspect the header using firefox web developer add-on and i don’t get any extra
   links.
 * the only irregularity i get when viewing the source in firefox is this unusual
   syntax higlighting:
    [http://img718.imageshack.us/i/sunlink.jpg/](http://img718.imageshack.us/i/sunlink.jpg/)
 * maybe some character problem?
 *  Thread Starter [wisegenius](https://wordpress.org/support/users/wisegenius/)
 * (@wisegenius)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/#post-2007074)
 * 
 * I just don’t understand why they are appearing & how to get rid of them!

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

The topic ‘Extra code being added to HTML’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [wisegenius](https://wordpress.org/support/users/wisegenius/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/extra-code-being-added-to-html/#post-2007074)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
