Forums

whole kubrick header as link, messed up in IE (10 posts)

  1. Skeary
    Member
    Posted 6 years ago #

    To do this I just moved the link in what was originally the title, and made it encompass the whole tag, like so
    <div id="header"><a href="<?php echo get_settings('home'); ?>">
    <div id="headerimg">
    <h1><div align="left"><font size="+9" color="white">
    </font></div></h1>
    <div class="description"><?php witty (); ?></div>
    </div>
    </div>

    It works perfectly in firefox, but in IE it is the most ridiculous looking link I've ever seen (well.. one of), in that it underlines the text when you put your cursor over the background picture and doesn't change the curser to a pointy hand..
    so i made a new class for the witty text to be in, and styled it like so:
    .wiseass a, .wiseass a:hover {
    color: black
    text-decoration: none;
    } `
    (in an effort to get rid of the hover underlinging) but it didn't make a lick of difference.

    clearly I am not really sure what the heck I am doing, but if anyone can help that would be awesome.. and my template alterations will be successful and complete!

  2. James
    Happiness Engineer
    Posted 6 years ago #

    These are the instructions for making the header clickable (as a link), from Kubrick's developer:

    Open [header.php]. Change [line 55], from <div id="header"> to <div id="header" onclick="location.href='http://siteaddress/';" style="cursor: pointer;"></div> . This will make the entire header a link.

    http://binarybonsai.com/kubrick

  3. Skeary
    Member
    Posted 6 years ago #

    well that was pretty easy, thanks!
    that's javascript or something, though right?

    I get weirded out when links don't tell me where they're going to. Is there an easy way of changing that?

  4. James
    Happiness Engineer
    Posted 6 years ago #

    Hm, that I'm not sure of. Try this:

    <div id="header" alt="http://siteaddress/" title="http://siteaddress/" onclick="location.href='http://siteaddress/';" style="cursor: pointer;"></div>

  5. Skeary
    Member
    Posted 6 years ago #

    that worked well enough.. it doesn't put it in the status bar, but the tool tip is nice to sort of ease the mind. danke :)

  6. hole64
    Member
    Posted 6 years ago #

    "Open [header.php]. Change [line 55], from <div id="header"> to <div id="header" onclick="location.href='http://siteaddress/';" style="cursor: pointer;"></div>"

    I also followed these directions from the Bonsai site too, but the problem with my page is that it makes the entire header a link, but it pushes my entries out of the table and jacks up the layout. Any ideas about what this is happening?

  7. stchatterbox
    Member
    Posted 6 years ago #

    haha, hole this happen to me too when i followed macmanx's instruction "totally"

    you should only type the following:

    <div id="header"> to <div id="header" onclick="location.href='http://siteaddress/';" style="cursor: pointer;">

  8. nl4045
    Member
    Posted 6 years ago #

    Same problem here.
    I typed;
    <div id="header" onclick="location.href='http://www.nederland4045.nl/blog/';" style="cursor: pointer;">
    <h1>"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    And now it messes up the rest of the page!

  9. nl4045
    Member
    Posted 6 years ago #

    Help!

    Ive been trying all day but cant get the header to function as a link!
    Right now the header html says;

    <div id="header" onclick="location.href='http://www.nederland4045.nl/blog/';" style="cursor: pointer;">
    <h1>"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    It works but messes everything else up, any tips?

  10. nl4045
    Member
    Posted 6 years ago #

    problem solved, after a lot of searching I found someone who could explain it in a way that worked;
    http://wordpress.org/support/topic/24403#post-260017

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.