Title: remove link from header picture
Last modified: August 31, 2016

---

# remove link from header picture

 *  [mags1978](https://wordpress.org/support/users/mags1978/)
 * (@mags1978)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/)
 * I’ve recently changed my font into twenty sixteen, but I can’t seem to find the
   place to remove the link behind the header picture.
    Any help?

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

 *  [Justin Tucker](https://wordpress.org/support/users/certainstrings/)
 * (@certainstrings)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/#post-7027326)
 * You would need to make a child theme. Once you have that in place, locate header.
   php in the main theme and copy it into your child theme.
 * [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 * Once that’s done, find the anchor tag in header.php and remove it.
 * `<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">` and `</a>`
 * If you’re using a text editor, the lines you need to remove are 90 and 92.
 *  Thread Starter [mags1978](https://wordpress.org/support/users/mags1978/)
 * (@mags1978)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/#post-7027531)
 * thanks, I’m not sure I want to get into the child theme stuff. I don’t want my
   website to cost to much time and labour Child-themes seem to complicate stuff
   for me.
 * Any change tot remove the link without the child-theme?
 *  [Justin Tucker](https://wordpress.org/support/users/certainstrings/)
 * (@certainstrings)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/#post-7027565)
 * You could try the using a plugin that enables inserting javascript. A quick search
   brought shows this plugin:
    [https://wordpress.org/plugins/css-javascript-toolbox/](https://wordpress.org/plugins/css-javascript-toolbox/)
 * Once that’s installed you would insert the javascript code below. The code below
   won’t remove the link, but but should prevent the default link behavior.
 * Be sure to have backups in place. If the plugin you choose is coded poorly, there’s
   a chance you could lose access to your site.
 *     ```
       document.getElementsByClassName('header-image').getElementsByTagName('a').addEventListener('click', function(e){
               e.preventDefault();
       });
       ```
   
 *  Thread Starter [mags1978](https://wordpress.org/support/users/mags1978/)
 * (@mags1978)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/#post-7027611)
 * thanks for your help!

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

The topic ‘remove link from header picture’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [mags1978](https://wordpress.org/support/users/mags1978/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/remove-link-from-header-picture/#post-7027611)
 * Status: not resolved