mac the lad
|
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
|
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
|
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
|
Anyone out there for this question??
Still need some help here.
Thanks
|
|
Marc Smith
|
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
|
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
|
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
|
You'll find that code in header.php in your theme files
|
|
Seth
|
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
|
@ Seth
In upper way it is done through java script but your way to make header image clickable is also good.
|
|