Support » Fixing WordPress » Link header image to homepage – HELP!

Viewing 15 replies - 1 through 15 (of 15 total)
  • This is my Header.php code…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    WHat about:

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

    hey, thx a lot… but unfortunately ๐Ÿ™ not workin’…

    Hopefully you did not copy exactly as I did have a small error:
    should be:
    <a href=""><h1>"><?php bloginfo('name'); ?></h1></a>

    I use it all the time.

    ๐Ÿ™ nope… i mean… i added my web site instead of “” ๐Ÿ˜‰ but still ain’t workin’… i’ve checked it in chrome and safari, too… cause i thought that maybe Firefox and Super Cache Plugin decided to play with me…

    My first posting I had the end tag wrong.
    when it should have been:

    yeah, i know traveler… but this theme is slightly different because i can make customization through Editor in WP, and through kind of easier interface, where i can pick up 2 or 3 columns, and some cosmetic changes… through this interface i did upload my header… that’s probably the reason of this mess…

    my hosting company ( heard my silent screams on twitter, and contact me to try to solve the issue… i hope everything will be okay…

    Did you mean to post that someplace else? Makes no sense here.

    no, it’s all in the same WP… bt it’s not in the same directory… would be great to be able to upload a screen-shot here to show you…

    Can you copy/paste your header.php into Pastbin?

    You can do this

    <a href=””>
    <div style=”width:936px;height:150px;background:URL(”></div>

    Be sure to make the div and the image the same size as the header, and make sure it’s inside the header in the header.php

    @webjunk sorry for not answering tonight, but i fell a sleep cuz it was about 2am…
    @fishdogfish tnx a lot for your help, too…

    as a i got the message this morning from my hosting company, they solved my issue… trying to figure out how…
    i wanted to try this morning this one:

    Put this CSS into โ€˜style.cssโ€™:

    .promotion {
    position: absolute;
    width: 217px;
    height: 119px;
    top: 140px;
    left: 50%;
    margin-left: 20px;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=”/wp-content/themes/elegant-grunge/banner.png”, sizingMethod=”crop”);
    text-indent: -9999px;
    z-index: 10;

    html>body .promotion { background: url(‘banner.png’) no-repeat; }

    .promotion a { display: block; width: 100%; height: 100%; }

    Then, put this HTML at the bottom of header.php:

    <div class=”promotion”>

    Some text here, if needed


    I found it here in comments earlier but was lazy to try:

    OK, thx once more guys, WP community and CMS rockZ!
    Hope somebody could use some stuff we’ve shared here…

    That seems like an awfully lot of mark up just to link to a header.

    Just looked at your site and it does not work in my browser if you made the changes. So its not fixed, at least in all browsers. And I agree with Fishdogfish its too much.
    Now I thought DXImageTransform.Microsoft.AlphaImageLoader was depreciated or taken out in newer versions of IE. It was just for the lack of proper png support back in IE 5 or 6.
    But just now taking a quick look at your code I see the issue. The link you have right now like I said to use but is around the TEXT “Body Pixel” inside the header div. The problem is in your CSS you are putting the banner (from the header in CSS) over the top of the text. It comes from here:

    #header div {
    	background: url( no-repeat center top;

    So not only is the text hidden so is the Link. You need the BANNER to have the link. You could change the depth/layers using z-index but then the text would display on top of the banner. WHat I think you need to do is take the image out of the css and put it in place of the text. You could just hardcode the image (how often do we change banners?) but if the theme supports uploading a banner you can just add code for it. Here is what I use in a couple of the themes I have written. Just need to make sure “$logo” is set to whatever variable your theme uses for the uploaded banner:
    ` if($logo): ?>
    <h1 class=”logo”><a href=”<?php bloginfo(‘url’); ?>/”><img src=”<?php echo $logo; ?>” title=”<?php bloginfo(‘name’); ?>” alt=”<?php bloginfo(‘name’); ?>” /></a></h1>
    <?php else: ?>
    <h1 class=”logo”><a href=”<?php bloginfo(‘url’); ?>/”><?php bloginfo(‘name’); ?></a></h1>
    <?php endif; ?>`

    hey guyz… so sorry, but i didn’t get ‘notify followup’ in my mail box… found it via analytics… i’ve managed to resolve the issue with IE… and it’s the way webjunk suggested, although this theme gave a lot of headache to people using IE… i’m slightly ignoring this browser… the thing is finally working… TNX a lot!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Link header image to homepage – HELP!’ is closed to new replies.