WordPress.org

Ready to get started?Download WordPress

Forums

Header image to link home in Elegant Grunge theme (8 posts)

  1. helenbakker
    Member
    Posted 2 years ago #

    I have read over 20 posts on this subject, but still cannot find a solution. I am using the Elegant Grunge theme for my website, and after having to remove my top menu because it is very hard to customize, I now found out that my header image is not linking to the home page, which is the intuitive link for most visitors.
    I tried just about everything, but no luck.

    Anyone have a good working tip on this?

    All hints are highly appreciated.

    my website: http://www.hbpersoneelsadvies.nl

  2. Kharis Sulistiyono
    Member
    Posted 2 years ago #

    The location of your header image is in header.php. Can you tell us the actual code declares your header image?

  3. helenbakker
    Member
    Posted 2 years ago #

  4. Kharis Sulistiyono
    Member
    Posted 2 years ago #

    Your code has been moderated, would you like to move it to pastebin.com as moderator suggested.

  5. helenbakker
    Member
    Posted 2 years ago #

    I have never used pastebin before, so I hope this works?
    <script src="http://pastebin.com/embed_js.php?i=NBGQmDfq"></script>

  6. Kharis Sulistiyono
    Member
    Posted 2 years ago #

    I found the reasons why your header image link disappears, here they are :

    • There is no link tag inside h1 tag.
    • Elements inside div#header are hidden by CSS.
    • Type of your header image is background image.

    The sollution:

    You need to make a link tag inside h1 tag. As in HTML format, it will be <h1>HOME</h1>. Then, you need to do some CSS stuffs to make the link plays as image link. Use the magic of text-indent:-9999px;

    Does it seem confusing? Do not be worry, I have made the complete code for you. Just replace your header.php with this code http://pastebin.com/VL2FKTVX

    Let me know if it works for you.

  7. helenbakker
    Member
    Posted 2 years ago #

    @kharisblank: you are a star! It works like charm. I will read into this, so I will know what to do next time.

    Thanks!

  8. Kharis Sulistiyono
    Member
    Posted 2 years ago #

    @helenbakker:

    You are welcome!

    You may change the topic status to be resolved. See on the right side of this page.

Topic Closed

This topic has been closed to new replies.

About this Topic