Support » Fixing WordPress » how to link header image?

  • Resolved grapefruitgirl

    (@grapefruitgirl)


    how does one link a header image from every page (including single entry pages)?

    im new to php so not sure how the html woudl fit with the header image php.

    can anyone assist?

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter grapefruitgirl

    (@grapefruitgirl)

    hi flashpal,

    cool, but where do you designate what url the image should go to?

    -grapefruit

    gfg: It’s already defined by <?php bloginfo('url'); ?>.

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    yeah!! it finally works. thanks to all who helped me figure this out. it’s much appreciated =)

    here’s the code that worked for me, in case anyone’s interested:

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

    rrob13

    (@rrob13)

    Thanks, y’all. This worked like a charm and was exactly what I needed.

    Rob

    lilypetals

    (@lilypetals)

    that code didn’t work for me. 🙁 any other ways? i’ve been searching for threads on this but no codes worked.

    <div id=”header”onclick=”location.href='<?php bloginfo(‘url’); ?>’;” style=”cursor: pointer;”>

    This one works best !!!!

    But however, in my Theme there is a search bar within the HeaderIMG:

    <div id="header">
    	<div id="headerimg"><?php include (TEMPLATEPATH . '/searchform.php'); ?>
    	</div>

    So whenever I want to enter something in the search bar, I click the link.
    Can you fix this somehow????

    you guys are awesome. the last code gfg posted worked for me like a charm. thanks!

    I really gotta crack open a book on PHP. 🙂

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘how to link header image?’ is closed to new replies.