Hyperlink an image in the header?

Having trouble installing serendipity?
Post Reply
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Hyperlink an image in the header?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Hyperlink an image in the header?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

Works! That is great. Where and How do I remove the highlighted border around it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

Yep that did it. THANKS!
Gamersea
Regular
Posts: 65
Joined: Thu Jun 15, 2006 8:52 am

Post 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.
Post Reply