 | Senior Member with 127 posts. | | Join Date: Apr 2008 Location: Ireland Experience: Know Alot, Dont know Alot | | 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 | | Senior Member with 531 posts. | | | | Looks working for me on my browser | | Senior Member with 574 posts. | | Join Date: Sep 2007 Location: Spain Experience: Adv PC, int HTML, bit PHP | | And for me but it takes a long time to load the page and it looks totally screwed until it is all loaded. | | Senior Member with 127 posts. | | Join Date: Apr 2008 Location: Ireland Experience: Know Alot, Dont know Alot | | 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? | | Senior Member with 574 posts. | | Join Date: Sep 2007 Location: Spain Experience: Adv PC, int HTML, bit PHP | | Try clearing your cache, it looks fine and works fine for me. | | Senior Member with 127 posts. | | Join Date: Apr 2008 Location: Ireland Experience: Know Alot, Dont know Alot | | 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 | | Senior Member with 574 posts. | | Join Date: Sep 2007 Location: Spain Experience: Adv PC, int HTML, bit PHP | | 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. | | Senior Member with 127 posts. | | Join Date: Apr 2008 Location: Ireland Experience: Know Alot, Dont know Alot | | 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 | | Senior Member with 574 posts. | | Join Date: Sep 2007 Location: Spain Experience: Adv PC, int HTML, bit PHP | | 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 | | 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 :-) | |
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.
| You Are Using: |
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. | |
|