Title: Header image not linking
Last modified: August 21, 2016

---

# Header image not linking

 *  Resolved [frzndaqiri](https://wordpress.org/support/users/frzndaqiri/)
 * (@frzndaqiri)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/header-image-not-linking/)
 * The header image is not going to the home page. I have a child theme created 
   but have not modified the code for the header.

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

 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213459)
 * by default it is not link-able. you will need to edit your child theme header.
   php line 154
 *     ```
       <a href="#link">
       <div id="custom-img-header"><img src="<?php echo header_image(); ?>" alt="" /></div>
       </a>
       ```
   
 * add the opening a href and closing
 *  Thread Starter [frzndaqiri](https://wordpress.org/support/users/frzndaqiri/)
 * (@frzndaqiri)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213533)
 * That didn’t seem to work. It shows the link but isn’t wrapping the header for
   some reason.
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213550)
 * how about
 * `<div id="custom-img-header"><a href="#link"><img src="<?php echo header_image();?
   >" alt="" /></a></div>`
 *  Thread Starter [frzndaqiri](https://wordpress.org/support/users/frzndaqiri/)
 * (@frzndaqiri)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213567)
 * I managed to sort it out thanks!
 *  [Eliasen79](https://wordpress.org/support/users/eliasen79/)
 * (@eliasen79)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213656)
 * I did put that code into the header php on line 154. It did link to the main 
   page, but it put the header underneath the “coloured menu”.
    Do you have a suggestion
   where else to set the code? I have tried both the codes, and both do the same…
   [http://www.homegymcommunity.com](http://www.homegymcommunity.com) The site is
   still under construction….
 *  [Eliasen79](https://wordpress.org/support/users/eliasen79/)
 * (@eliasen79)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213657)
 * actually i put the code too far up, anyway got your point on the code, but that
   did not change anything. it still did not link it. Any ideas?

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

The topic ‘Header image not linking’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mesocolumn/1.6.5.1/screenshot.
   png)
 * MesoColumn
 * [Support Threads](https://wordpress.org/support/theme/mesocolumn/)
 * [Active Topics](https://wordpress.org/support/theme/mesocolumn/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mesocolumn/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mesocolumn/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Eliasen79](https://wordpress.org/support/users/eliasen79/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/header-image-not-linking/#post-4213657)
 * Status: resolved