Page 1 of 1

Banner Image on blog main page?

Posted: Wed Oct 13, 2004 7:33 am
by halcyon
I was just wondering how I would go about putting a banner image at the top of the blog - near the blog name up on the left. Can this be done?

Posted: Wed Oct 13, 2004 11:15 am
by jhermanns
yeah! which template are you using? if you're using the default template, you could patch templates/default/layout.php

let us know if it worked...

Banner image

Posted: Wed Oct 13, 2004 2:28 pm
by halcyon
I am using the slate-grey theme. Still possible?

Posted: Thu Oct 14, 2004 8:37 am
by romulus
its always possible with every theme.

Every theme has its own layout.php which does the whole layout on its own. If you want to display some weird content or images or whatever you have to change this file.
If you have some HTML knowledge it should be no problem to change this file to your liking. It is basically a HTML file with some minor php code here and there.

Posted: Thu Oct 14, 2004 9:10 pm
by randybrown
Every theme has its own layout.php which does the whole layout on its own.
Just to clarify: only the "default" theme in the distribution has a

Code: Select all

layout.php
. All other themes makes use of that file. It can be copied into the directory of the theme you are working with and then mdofied there.

I started working yesterday on a theme and simply duplicated the entire "default" directory, as it seemed to have all of the files necessary

Posted: Fri Oct 15, 2004 12:27 am
by tadpole
You shouldn't do that. Copy as little over from the default as possible--if s9y can't find a file in your theme directory it tries the default. By having it fall back wherever possible you are better able to take advantage of enhancements in s9y without modifying your own files every time you update.

Posted: Fri Oct 15, 2004 2:27 am
by randybrown
Copy as little over from the default as possible
I see your point. But if I want to make a significantly different theme than the ones which are available, I will need to modify most files, i.e.: layout.php, style.css, etc. Plus, I'll need to make changes to the images.

This is why I copied default, as it had all of the files in it.

It seems that all of the templates in the distribution use the default layout.php, which is why the templates look pretty much the same.

Posted: Fri Oct 15, 2004 8:33 am
by tadpole
Significantly different probably doesn't involve every single little thing, so IMHO it would be best to just copy the stuff over as you need to. Your decision, though. With regards to every theme using the default layout.php:
[tadpole@localhost templates]$ find -name layout.php
./default/layout.php
./moz-modern/layout.php
./newspaper/layout.php
./s9y_thin/layout.php
./Orange/layout.php
./arztqua/layout.php
./blogger-death/layout.php
Kaustubh had a habit of copying over everything, hence its presense in thin and orange (both unnecessary). I think we've broken him of it, though.

Posted: Mon Oct 25, 2004 6:39 pm
by JustinS
Also, note:

Some authors place the URL to the banner file within the css document itself..

Code: Select all

#serendipity_banner {
    font-family: Helvetica, Arial, sans-serif;
    color: #FFFFFF;
    background: #9CF url(http://www.justinshattuck.com/bgHeader.jpg);
    text-align: left;
    width: 652px;
    height: 280px;
    margin:auto;
	
}


Just an example...