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'); ?>
.
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>
Thanks, y’all. This worked like a charm and was exactly what I needed.
Rob
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. 🙂