Viewing 15 replies - 1 through 15 (of 22 total)
  • You can try adding: <a id="headerlink1" href="https://yoursite.com"></a> to your header.php inside the header div.

    Then, in your css, add this:

    #headerlink1 {
    width:800px;
    height:168px;
    border, padding, margin: 0;
    background:transparent;
    display:block;}

    Try that and let me know if it works.

    Thread Starter inknjoy

    (@inknjoy)

    RVoodoo,

    Okay so I changed it using WP’s info on header changes but now my header is doubled, I definitely added too much somewhere:

    <div id=”header”>
    “>
    <img src=”
    https://www.inknjoy.com/wp-content/uploads/2010/01/inknjoybanner2.jpg&#8221; alt=”<?php bloginfo(‘inknjoy’); ?>” />

    <h1>“>” title=”<?php bloginfo(‘inknjoy’); ?>”>
    <?php bloginfo(‘inknjoy’); ?>

    </h1>

    Thread Starter inknjoy

    (@inknjoy)

    Oh I just saw Matt’s reply, let me try that…

    Now take out the background-image from your header div and you’ll be OK.

    We each had a different approach – they both work so you can do either one.

    when posting code….put it between backtics (not apostrophe)

    the thing in the top left of keyboard, under esc on an american keyboard

    It keeps your code nice and neat…..for the most part!!

    Thread Starter inknjoy

    (@inknjoy)

    Hmmm, Thank You again :)! You guys rock! I think I definitely need to sit with a pro and show me how do this live… I did manage to get the double header out, when I roll my mouse over the header it shows that it is clickable but it doesn’t look like is going back to the main page at all….and yes I’m a girl and if either one of you is thinking “you don’t know what you are doing” you are so right on point!
    Anybody in NY looking to make some extra cash?

    <div id=”header”>
    “>
    <img src=”
    https://www.inknjoy.com/wp-content/uploads/2010/01/inknjoybanner2.jpg&#8221; alt=”<?php bloginfo(‘inknjoy’); ?>” />

    <h1>“>” title=”<?php bloginfo(‘inknjoy’); ?>”>
    <?php bloginfo(‘inknjoy’); ?>

    </h1>

    you still gotta put your code in between backtics so I can see it better!

    I’m not sure if stuff is getting stripped out of your example….

    like this very important stuff:

    <a href="<?php bloginfo('url'); ?>">

    before the img link

    and </a> after it

    You are changing too much stuff too…like ="<?php bloginfo('name'); ?> shouldn’t say inkjoy, it should say name. That makes it pick up your site name automatically You really just need the link to your image in that code….

    <div id="header">
        <a href="<?php bloginfo('url'); ?>">
      <img src="https://www.inkjoy.com/wp-content/uploads/2010/01/inkjoybanner2.jpg" alt="<?php bloginfo('name'); ?>" />
        </a>
         <h1><a href="<?php bloginfo('url'); ?>">" title="<?php bloginfo('name'); ?>">
             <?php bloginfo('name'); ?></a>
         </h1>
    Thread Starter inknjoy

    (@inknjoy)

    I see, here it is again:

    <div id="header">
        <a href="<?php bloginfo('www.inknjoy.com'); ?>">
     <img src="https://www.inknjoy.com/wp-content/uploads/2010/01/inknjoybanner2.jpg" alt="<?php bloginfo('inknjoy'); ?>" />
        </a>
         <h1><a href="<?php bloginfo('https://www.inknjoy.com'); ?>">" title="<?php bloginfo('inknjoy'); ?>">
             <?php bloginfo('inknjoy'); ?></a>
         </h1>

    backticks! and you don’t need the <h1> tags anymore – that was a different method that I mentioned.

    See voodoo’s post below

    You could make it even shorter code! Move the inkjoybanner2.jpg into the images folder within your theme

    then your code just needs to be:

    <div id="header">
        <a href="<?php bloginfo('url'); ?>">
      <img src="<?php bloginfo('template_url'); ?>/images/inkjoybanner2.jpg" alt="<?php bloginfo('name'); ?>" />
        </a>
         <h1><a href="<?php bloginfo('url'); ?>">" title="<?php bloginfo('name'); ?>">
             <?php bloginfo('name'); ?></a>
         </h1>

    Note: don’t change anything in the code like “url” or “name”. Whatever is in the code from voodoo, just paste it as is!

    Thread Starter inknjoy

    (@inknjoy)

    RVoodoo, I changed everything back the way you just showed me on the revised code you made, but now the header image dissapeared. Is it because the image lives in the wrong place? Right now it lives in the Media Library

    Yes, he said move it to the images folder within your theme. Can you do that via ftp?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘How do I make the header clickable?’ is closed to new replies.