Clickable headers


Author Message
mac the lad

Posted: 11/20/2008
Quote message 

quick question.

how would we go about making the whole
header clickable in the themes that we build.

i have seen this posted every where and it dont work.

Change from
<div id="header"> to:

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

Posted: 12/1/2008
Quote message 

Hallo look like this please. It only works when Java is on.
<div id="header" onclick="location.href='<?php bloginfo('url') ?>';" style="cursor: pointer;">...</div>

the id="Header" you must look for in my Theme it looks like this
<div class="Header" onclick="location.href='<?php bloginfo('url') ?>';" style="cursor: pointer;">    <div>


Greatings
Thomas
 
Linda

Posted: 1/6/2009
Quote message 

Could you please show exactly where in the header php I would place a redirect
I have a blog that pretty seamlessly goes back and forth and I want the header to link to the website.
I tried some some ideas from wordpress forums, but I must not be inserting the code in the right place.
I was trying to use these directions, but of course the id for this theme is not the same.
Open the appropriate header PHP file (wpremix/includes/header).
Locate the start of the header (header 3 starts on line 34).
Find the code:

<div id="header3">

Add code so it matches

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

Change siteaddress to match your URL and now the whole header is a link.

So could you post the code and then exactly where it needs to go?

I sure appreciate that. Thank you.
 
Linda

Posted: 1/12/2009
Quote message 

:*) Anyone out there for this question??
Still need some help here.
Thanks
 
Marc Smith

Posted: 1/12/2009
Quote message 

WPRemix is a premium template that has a LOT of hooks in it. I would ask that question of those guys... since they programmed it.
 
Franck

Posted: 8/17/2009
Quote message 

He there, this works fine for me, just tried it and worked like a charme right away;

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

Below is a copy of my code, template build with artisteer so this should match your code;

<div class="art-Header"onclick="location.href='http://www.mekkobrev.nl/';" style="cursor: pointer;">
<div class="art-Header-jpeg"></div>

Thanks for the post!!
 
Central Valley California

Posted: 8/30/2009
Quote message 

Frank Awesome, can you tell me where your at when you put that in.





Quote Franck:

He there, this works fine for me, just tried it and worked like a charme right away;

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

Below is a copy of my code, template build with artisteer so this should match your code;

<div class="art-Header"onclick="location.href='http://www.mekkobrev.nl/';" style="cursor: pointer;">
<div class="art-Header-jpeg"></div>

Thanks for the post!!

:-)
 
Garry

Posted: 8/30/2009
Quote message 

You'll find that code in header.php in your theme files
 
Seth

Posted: 9/17/2009
Quote message 

I made my header clickable another way.

I just went into header.php, found the lines:

<div class="Header">
<div class="Header-png"></div>
<div class="Header-jpeg"></div>
<div class="logo">

and slapped an anchor tag like so:

<div class="Header">
<a href="http://www.apainintheassets.com/">
<div class="Header-png"></div>
<div class="Header-jpeg"></div>
</a>
<div class="logo">

...so the full header (which is split into outer and inner components, the png and jpeg) is in the tag and is clickable.

I haven't seen this solution anywhere else... is there something wrong with it? (It seems to work fine for me!)

 
Garry

Posted: 9/17/2009
Quote message 

@ Seth

In upper way it is done through java script but your way to make header image clickable is also good.