Forums

[resolved] How to link an image header? (4 posts)

  1. gr33n
    Member
    Posted 1 year ago #

    Hi,

    I have an image header (www.loglo.org) I just added to my blog.

    I am trying to add a link to it, so users can use it to return to the home page.

    Here is how I've implemented it (I realize this is probably not ideal):

    in my stylesheet.css:

    #header {
    background: #a2d073 url(images/loglo.web6.trans.png) top center;
    background-repeat:no-repeat;
    height:184px;
    text-align: center;
    }

    The default code that previously was just plain text (but linked back to home) was, in header.php:

    <h2>/"><?php bloginfo('name'); ?></h2>

    How do I combine the two. . . or is there a better way to do this?

  2. jonimueller
    Member
    Posted 1 year ago #

    Here's how I do mine:

    <div id="banner" onclick="window.location.href='<?php bloginfo('url'); ?>'" style="cursor: pointer;">

  3. gr33n
    Member
    Posted 1 year ago #

    Thanks! That worked a treat.

  4. uglymoggy
    Member
    Posted 6 months ago #

    you rock! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic