Page 1 of 1
[Theme Help] Image as the banner.
Posted: Tue May 31, 2005 10:30 am
by Lifeskar
I'm a real newbie when it comes to this CSS and PHP stuff. I can follow directions pretty well tho. I've installed PHP Nuke on a site and run it pretty well...but I want to have my own blog now. Out of all the ones I've looked at, Serendipity has been the best. I've made changes to the theme and now it looks different, except for the one thing I want... I dont want a text banner, I want the banner I made. Can someone provide a semi detailed way to do this? I'm using Serendipity-0.8.1, and a variant of the "MT-Trendy" theme. I'm really unsure where to put the:
Code: Select all
background-image: url(http://img.url);
Any help would be greatly appreciated.
Thanks,
Nick

Posted: Tue May 31, 2005 12:35 pm
by vastneonwolf
Should be in #serendipity_banner
I should think.
Posted: Tue May 31, 2005 5:54 pm
by Lifeskar
This is what it looks like right now:
Code: Select all
#serendipity_banner {
background-image: url(http://img.url);
font-weight: bold;
padding-left: 15px;
width: 668;
height: 192;
}
But it still doesn't work...

I've put it there before and i've put it in this part of the code as well:
Code: Select all
#serendipity_banner h1 {
text-align: center;
color: #cc9933;
font-size: x-large;
}
It still doesn't work...this doesn't have a "layout.php" file, so I can't edit that...I'm totally lost on where to put this...anymore suggestions would be greatly appreciated. Oh, and do i need to put the URL in quotes?
Posted: Tue May 31, 2005 6:59 pm
by garvinhicking
Do you have it online somewhere? Basically your example should work.
URLs do not need to be put in quotes there...
Regards,
Garvin
Posted: Tue May 31, 2005 7:41 pm
by Lifeskar
I sure do...
http://gbblog.webpal.info/
I have it working somewhat, it shows PART of the image I want it to display and its tiled. The Image at the top is the HTML Nugget, I really DO NOT want to use that since it goes above my freehosts advertisement. I want the ad to be at the top and have my Image under it. Is there a way I could edit my config to recogonize the "< >" ?
P.S. Sorry if any of you who read this are from England :p
Posted: Tue May 31, 2005 8:42 pm
by garvinhicking
Hi!
I think for your way you should edit the "index.tpl" template. If you don't have that file in your current template directory, just copy it over from the default/index.tpl location. There you can edit the HTML of the banner code and inject your header stuff.
You seem to already have done that, but <img> tags are NOT allowed within the <head> section, only within <body>...hm. I am confused.
Regards,
Garvin
Posted: Wed Jun 01, 2005 1:26 am
by Lifeskar
Thanks for the tip, I wasn't aware that the index.tpl file was transferable to various themes. After that, it was simple as pie

.