Make header image hyperlink to home page or main page.

Posted on 2007-07-25
Last Modified: 2012-05-05
Hello Experts!

I would like to use this template
but I want to have the header image as a hyperlink to the main page or home page. I know this should be a quick and easy solution but I can't figure it out. Please leave detailed instructions or code, first correct solution recieves 500 points. Thanks!!
Question by:cbossert
    LVL 5

    Accepted Solution

    In the template file, make the following change to header.php

       <div id="header">
       <div id="header" onclick="document.location.href='/'">

    Replace '/' with the root location of your site.

    To make the cursor turn into a hand when you hover over it, open style.css and add
       cursor: pointer;
    under #header {

    This is the easiest way to get it working, but will require that the user has javascript. Let me know if you need further clarification.

    Author Comment

    This worked great! Thank you for your help I have another related question if you want another 500 points!!


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
    Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
    The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
    The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now