Title: Heading Hyperlink
Last modified: August 19, 2016

---

# Heading Hyperlink

 *  [screentan](https://wordpress.org/support/users/screentan/)
 * (@screentan)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/heading-hyperlink/)
 * I changed the header image on the Kubrick theme by swapping the kubrickheader.
   jpg file with my own image and renaming it kubrickheader.jpg. That all worked
   great.
 * Next I erased the Blog Title and Tagline in General Settings as the text is already
   in the image file. Doing that however means that the home hyperlink is no longer
   active. Is there a way to make the entire header image hyperlink back to the 
   start page please?

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039576)
 * Add the onclick part of this code to whatever div your header image is contained
   in. If your WP is installed in the root folder, remove /{installfolder}/ otherwise
   replace it with the folder your WP is installed in
 * `<div id="header" onclick="location.href='http://yoursite.com/{installfolder}/';"
   style="cursor: pointer;">`
 *  Thread Starter [screentan](https://wordpress.org/support/users/screentan/)
 * (@screentan)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039756)
 * Thanks, I had a look at the style sheet code (code below) using the editor but
   cannot see a header div section to place the code you mentioned into. I tried
   it in the #header block it but didn’t seem to work.
 *     ```
       /*
       Theme Name: WordPress Default
       Theme URI: http://wordpress.org/
       Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.
       Version: 1.6
       Author: Michael Heilemann
       Author URI: http://binarybonsai.com/
       Tags: blue, custom header, fixed width, two columns, widgets
   
       	Kubrick v1.5
       	 http://binarybonsai.com/kubrick/
   
       	This theme was designed and built by Michael Heilemann,
       	whose blog you will find at http://binarybonsai.com/
   
       	The CSS, XHTML and design is released under GPL:
       	http://www.opensource.org/licenses/gpl-license.php
   
       */
       ```
   
 * [**Moderated:** Too much code. Please consider placing the code in a text file
   on your site with a link here -or- use a pastebin service such as [http://wordpress.pastebin.com](http://wordpress.pastebin.com).
   Thanks!]
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039759)
 * Hi
 * You are not supposed to change anything in your stylesheet.
 * The default Kubrick theme has this code starting on line 41 in theme template
   file _header.php_ If you do not see the line `<div id="header">` then you are
   using a modified version of the Kubrick theme. None the less, there will be a
   DIV that contains the header. That is the line to which you want to add the code.
   I’ve changed the code to make it simpler (below)
 *     ```
       <div id="header">
         <div id="headerimg">
           <h1><a>/"><?php bloginfo('name'); ?></a></h1>
           <div class="description"><?php bloginfo('description'); ?></div>
         </div>
       </div>
       ```
   
 * change this line
    `<div id="header">` to this `<div id="header" style="cursor:
   pointer;" onclick='location.href="<?php echo get_option('home'); ?>"'>`
 * That should do it.
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039760)
 * Once again I neglected to mark the code as code – the code on line 41 is
 *     ```
       <div id="header">
         <div id="headerimg">
           <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
           <div class="description"><?php bloginfo('description'); ?></div>
         </div>
       </div>
       ```
   
 *  [afwings](https://wordpress.org/support/users/afwings/)
 * (@afwings)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039876)
 * Thanks. I followed the instructions in your first reply and it worked like a 
   champ.

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

The topic ‘Heading Hyperlink’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [afwings](https://wordpress.org/support/users/afwings/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/heading-hyperlink/#post-1039876)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
