The MU forums have moved to

Header Image link (10 posts)

  1. boonika
    Posted 16 years ago #


    I've removed Blog Title and Tagline and replaced it with header logo image. Now I want to link that image to my homepage:

    This is how it looks in CSS:

    h1 {
            background: url(images/logo.gif) no-repeat;
            width: 625px;
            height: 70px;
    	margin: 20px 0px 10px 0px;


  2. lunabyte
    Posted 16 years ago #

  3. tdjcbe
    Posted 16 years ago #

    That's more of a "edit the html code" problem instead of a css issue. Without seeing what's occurring, there's not a whole lot folks here can help with.

    Have to agree with lunabyte though. That's really a basic html question.

  4. boonika
    Posted 16 years ago #

    I like lunabyte's sarcasm but I like 'donncha' or 'cafespain' type of answers more. I'm just a designer. The part of the code I need to change is probably placed inside header.php file. I think this line should be changed:

    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

    URL: of course, this website is under heavy construction:)

    So, I should probably remove background image from CSS and call it as image source inside header.php file. The problem is that my image (logo.gif) won't appear that way. Btw, it is placed inside my theme's 'images' folder.

    Thanks in advance

  5. lunabyte
    Posted 16 years ago #

    Well, unfortunately it wasn't sarcasm.

    Basic HTML/CSS questions are for those types of forums/sites.

    So pointing you to the W3C where you can learn such basics is far from sarcastic.

  6. boonika
    Posted 16 years ago #

    Thanks lunabyte. I just needed a simple answer. As I said before, I'm a designer not a programmer but I'll do it myself. If I was able to rearrange all those custom fields and divs on my homepage (and other pages) than this shouldn't be a problem... but I would be more satisfied if someone could just provide a simple solution. People should help each other around here, right? Or is it more like; "If you want to become Ninja first you have to spend 10 days in desert without watter. Sorry but that's the procedure."

    I would just like to add that I'm using MU for more than a year now and when I have a question I come here to get some answers. I believe that this is why this forum was created in the first place. I don't see why would someone have a problem with helping me with basic HTML. Here's the address of one of my sites where I do most of MU tests:


  7. andrea_r
    Posted 16 years ago #

    Well, a knowledge of basic HTML is kinda a prerequisite. :)

    This will help:

    and this:

  8. boonika
    Posted 16 years ago #

    Thanks Andrea. I should have checked the codex in the first place but somehow I always skip that step. This will be helpful. Thanks again.

  9. indojepang
    Posted 16 years ago #

    don't make your logo->background, but if u wanna the whole header clickable go ahead.. and a href (link) your header div.

    if u just want the logo to be clickable, put <img src=""> or place it as background in a div-> then make link the div. and positioning the div via css.

    since u work @WPMU, <?php echo get_option('home'); ?> only pointing particular blog to it's home.

    use <a href="http://<?php echo get_current_site()->domain . get_current_site()->path ?>"><div id="myLogoURL"></a> for pointing any blog under your domain goes to your main blog home.

  10. boonika
    Posted 16 years ago #

    Thanks a lot indojepang. I appreciate it.

About this Topic