Page 1 of 1

add logo

Posted: Thu Jan 05, 2006 3:06 pm
by toto12
how can I do to add a logo on the top of the blog ?

thk

Re: add logo

Posted: Thu Jan 05, 2006 5:22 pm
by garvinhicking
Either by editing your style.css CSS stylesheet and insertit, or edityour index.tpl file andinsertit.

Regards,
Garvin

Posted: Thu Jan 05, 2006 8:03 pm
by judebert
Say, Garvin, I was thinking of adding this capability to the plugin that currently handles Joshua and Kubrick images. If I do, would it be worth committing?

Posted: Thu Jan 05, 2006 9:06 pm
by garvinhicking
You mean a third choice for the "default"template? Sure, I would commit that!

Regards,
Garvin

Posted: Fri Jan 06, 2006 9:24 am
by toto12
I want the logo (a picture) on the right top of the blog

Can you tell me where can I add the ref in the .css ?

thk

Posted: Fri Jan 06, 2006 9:59 am
by garvinhicking
Toto12: In your case I tghink it'seasier to edit your index.tpl template. Look for the "serendipity_banner" and then insert your HTML code to show the image...

Bestregards,
Garvin

Posted: Fri Jan 06, 2006 2:27 pm
by judebert
If you really want to do it with CSS, find your #serendipity_banner and add these properties:

Code: Select all

    background-image: url(http://domain.com/complete/path/image.gif);
   background-repeat: no-repeat;
   background-position: top right;

Default Template Logo Plugin!

Posted: Sat Jan 07, 2006 3:39 am
by judebert
I am proud to announce that I have updated the kubrickheader plugin to switch the background image of the default template.

You can easily define a logo with most templates.

The kubrickheader plugin is now known as "Template Header / Logo Image" in Spartacus. It still allows you to switch the header image for Kubrick and Joshua templates. It now allows you to add an image to any template based on the default template.

The image can be placed within the banner at any of the corners, sides, or dead-center. The banner will not expand to accomodate large images. The image goes underneath the homepage links, if they overlap. Many templates are based on Default; basically anything where the banner is named "serendipity_banner" can use this plugin to replace the banner image.

If that wasn't enough, I also added .gif support. Choose a directory of images, and a .gif, .jpg, .jpeg, or .png will be chosen at random each time the page loads.

So where's the downside? Well, the header does not expand to contain the logo. The homepage links are not image-replaced, even optionally. And, if your banner already has a background image, it will be replaced.

I took the liberty of committing it to CVS myself (after all, Garvin, you gave me access to the additional_plugins directory so I could save you some work, right?). It should show up in Spartacus as "Template Header / Logo Image" version 1.3 within 24 hours. The impatient can obtain it immediately from http://judebert.com/wasted_youth/media/ ... header.zip.

Here's wishing you Serendipity when you blog!
Judebert