You are here:  » Clickable header image

Support Forum



Clickable header image

Submitted by marco@flapper on Sun, 2010-10-31 21:52 in

How can I make the image clickable so that if you click on it you go (back) to the home page?

Submitted by support on Mon, 2010-11-01 09:20

Hi Marco,

I assume you have added a logo / image in html/header.php, all you need to do is wrap that in A tags with a link to $config_baseHREF, and add a border='0' tag to your image to make sure that it isn't bordered when it becomes a link, for example:

<a href='<?php print $config_baseHREF?>'><img border='0' src='/images/logo.gif' /></a>

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Mon, 2010-11-01 09:55

hi,
I just changed the top.jpg.

I noticed this line in header.php:
#pttemplate {color: #000; background: #FFF url('

<?php
 
echo $config_baseHREF
?>
images/top.jpg') top center no-repeat; }

Or should I add a logo? Can you give me a link how to do that?

Submitted by support on Mon, 2010-11-01 10:37

Hi Marco,

I see you're using a template from PriceTapestryTemplates.com, and it looks like the image has been implemented as a background rather than inline within the HTML. Dave at PriceTapestryTemplates.com will probably be able to give more in depth help, but I think what you need to do is to replace the section you posted with just:

#pttemplate {color: #000; background: #FFF; }

...and then look for the position after the opening <body> tag, and then after that try inserting something like this:

<div style='margin:auto;'>
<a href='<?php print $config_baseHREF?>'><img border='0' src='<?php print $config_baseHREF?>images/logo.gif' /></a>
</div>

(or replace logo.gif with top.jpg if you've already changed that to the image you want)

Hope this helps!

Cheers,
David.
--
PriceTapestry.com