Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Linking Wordpress Header Back To Homepage

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
robobobo's Avatar
Computer Specs
Senior Member with 127 posts.
 
Join Date: Apr 2008
Location: Ireland
Experience: Know Alot, Dont know Alot
15-Oct-2009, 05:26 PM #1
Solved: Linking Wordpress Header Back To Homepage
Hi Guys,

Im having some trouble linking my wordpress header image so that users can click it to get back to the homepage

www.techinfo-4u.com

I've changed the header.php template from

<div id="header"

to

<div id="header" onclick=”location.href=’http://techinfo-4u.com/’;” style=”cursor: pointer;”>

but nothing happens.,

Anyone any ideas why not?

Cheers
skyhigh007's Avatar
Senior Member with 531 posts.
 
Join Date: Jun 2004
15-Oct-2009, 08:52 PM #2
Looks working for me on my browser
colinsp's Avatar
Computer Specs
Senior Member with 574 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
16-Oct-2009, 01:38 AM #3
And for me but it takes a long time to load the page and it looks totally screwed until it is all loaded.
robobobo's Avatar
Computer Specs
Senior Member with 127 posts.
 
Join Date: Apr 2008
Location: Ireland
Experience: Know Alot, Dont know Alot
16-Oct-2009, 01:41 PM #4
Yes, the page is a bit messy before its loaded but i think thats because i haven't resized the images yet

Anyone know how to sort out my header problem though?
colinsp's Avatar
Computer Specs
Senior Member with 574 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
16-Oct-2009, 03:59 PM #5
Try clearing your cache, it looks fine and works fine for me.
robobobo's Avatar
Computer Specs
Senior Member with 127 posts.
 
Join Date: Apr 2008
Location: Ireland
Experience: Know Alot, Dont know Alot
16-Oct-2009, 05:12 PM #6
Ate you talking about the actual menu link that's at the bottom right of the header or the actual header image with the logo

it's the logo I'm trying to get to link back to my homepage
colinsp's Avatar
Computer Specs
Senior Member with 574 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
17-Oct-2009, 01:35 AM #7
The logo was working when you first posted the question but I have checked it now and it isn't working as you want. Have a look at the changes you have made recently and revert them to get it working again. A quick look at your css shows that you have put the logo as a background image now and so what you want to do won't work. You need to place it as an element in the header for the link to work.
robobobo's Avatar
Computer Specs
Senior Member with 127 posts.
 
Join Date: Apr 2008
Location: Ireland
Experience: Know Alot, Dont know Alot
17-Oct-2009, 05:46 AM #8
Thanks Colinsp,

the reason it was first working i think was because i had entered the blog title in the wordpress settings, so it was actually the text over my header image that was linking, not the actual image itself, it wasn't what i wanted as i had text over the image

This is my current header section in my style.css

/* HEADER */

#header {
height: 100px;
padding-top:0px;
border-bottom: 1px solid #fff;
background: url(images/header.jpg) top left no-repeat;
}

#header h1 {
margin-bottom: 3px !important;
padding: 6px 0 0 0;
font-weight: normal;
font-family: Georgia, Times, "Times New Roman", serif;
font-size: 42px;
text-transform: normal;
}

#header h1 a, #header h1 a:visited {
color: #667b98;
text-decoration: none;
}


#header h2 {
color: #667b98;
font-size: 11px;
line-height: 12px;
font-family: Georgia, Times, "Times New Roman", serif;
text-transform: uppercase;
}

Your right about the background image, thats what i suspected, what do i need to do to make it an element as i can only see different code for the font size, colour etc...

Thanks so much for your help
colinsp's Avatar
Computer Specs
Senior Member with 574 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
17-Oct-2009, 11:03 AM #9
What you can try is restyling your h1 tag

This is the css

Code:
h1 a{display:block; height:350px; width:750px; text-indent:-2000em; text-decoration:none; z-index:1000; background:url(your image url here) 0 0 no-repeat;}
Change the height and width to suit your image and the header div

Then in your code for the h1 tag try this

Code:
<h1><a href="/">Tech Info 4U</a></h1>
What this does is hides the h1 text off the left off the page and then makes the image the viewable bit of the h1 tag and clickable.

Give it a try
robobobo's Avatar
Computer Specs
Senior Member with 127 posts.
 
Join Date: Apr 2008
Location: Ireland
Experience: Know Alot, Dont know Alot
17-Oct-2009, 05:23 PM #10
:-)
Colin Thank you sooooo much!!!

This finally did it for me! Thank you so so so much! This one small thing has prevented me from re launching my site officially. Thank you so much for this , and thank you to everyone else who helped me, thats why i love this forum! and i will be linking to it from my site and recommending it to anyone looking for help!

Thanks again so much :-)
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:57 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.