Page 1 of 1

Hyperlink an image in the header?

Posted: Tue Jun 06, 2006 4:53 pm
by DMotel
How/Where can I make my header hyperlink to the home page of the blog? Here is the URL: http://bernsteinmedical.com/blog/
If you could show me the code that would GREAT.
Thanks
-Doug

Re: Hyperlink an image in the header?

Posted: Tue Jun 06, 2006 7:48 pm
by garvinhicking
Hi!

For making a link, you need an "<a href...>" tag inside the code of your index.tpl.

So the best thing is to not use CSS for inserting the banner, but plain HTML:

Code: Select all

<div id="serendipity_banner">
<a href="http://yourblog/"><img src="/img/header.jpg" /></a>
</div>
Then only use CSS to make those tags properly align the way you want it?

Best regards,
Garvin

Posted: Tue Jun 06, 2006 9:48 pm
by DMotel
Works! That is great. Where and How do I remove the highlighted border around it?

Posted: Tue Jun 06, 2006 9:53 pm
by garvinhicking
Hi!

You'll need to do that via CSS: Something along these lines:

Code: Select all

.serendipity_banner img {
border: 0px;
}
Regards,
Garvin

Posted: Tue Jun 06, 2006 10:22 pm
by DMotel
Yep that did it. THANKS!

Posted: Thu Jun 15, 2006 9:22 am
by Gamersea
Just a small question, Why you don't use the wysiwyg (What You See is What You Get) editor? That is really easy to use especially if you add many links.