Page 1 of 1
Change title in plain vanilla theme
Posted: Wed May 31, 2006 5:04 pm
by neov
For some reason, the category name isn't showing up with the plain-vanilla template. Is this something that I've done wrong, or is it the way the template is set up. If it's the latter, how would I go about changing it?
Here's the page if that helps:
http://neoutdoorvoice.com/blogs/index.p ... ly-Fishing
Thanks.
Re: Change title in plain vanilla theme
Posted: Wed May 31, 2006 5:11 pm
by garvinhicking
Hi!
Yes, it'S a matter of that template's index.tpl file. Compare it to the index.tpl of the default theme and make your adjustments for variables $blogTitle / $blogDescription / $head_title / $head_subtitle to place them where you need them.
Best regards,
Garvin
Posted: Wed May 31, 2006 5:22 pm
by neov
I thought that was where it would be, but they looked the same to me. Here's the default:
Code: Select all
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" />
<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" />
And here's the one from plain-vanilla:
Code: Select all
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" />
<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" />
Of course I'm assuming I have the correct section of the .tpl file to be looking at here...and it wouldn't be the first time I was wrong about something like that.
Here's a category using the default template:
http://neoutdoorvoice.com/blogs/index.p ... 11-Fishing
Posted: Thu Jun 01, 2006 10:17 am
by garvinhicking
Hi!
There is another section lower in that index.tpl file, where also "serendipity_Banner" is involved. I think this section is the one you want to modifiy?
Best regards,
Garvin
Posted: Thu Jun 01, 2006 3:25 pm
by neov
Thanks Garvin, I'll look for it.
Is there a tutorial anywhere that talks about the different parts of a .tpl file that I could read and learn a little more? I'd like to edit some more for things like comments, trackbacks, buttons, etc. If only I knew what all that code meant I could stop asking you questions!

Posted: Thu Jun 01, 2006 3:44 pm
by garvinhicking
Hi!
Yes, the technical docs on
www.s9y.org document parts of it, you might want to have a look at it. In the end, most things are HTML.
Best regards,
Garvin
Posted: Thu Jun 01, 2006 5:01 pm
by neov
Well, thanks to your help, I've found the section and made the changes. I used the <!--- and ---> until I got it right so I could change it back quickly if need be. I only changed the file 30 or 40 times before getting it right, but at least it's done.
I'm guessing that things like buttons can be removed or adjusted in the same way?
Posted: Thu Jun 01, 2006 5:19 pm
by neov
Garvin, I managed to edit the buttons how I wanted them.
Thanks again for the help!

Posted: Fri Jun 02, 2006 12:59 pm
by garvinhicking
Hi!
You're welcome! It seems you are making a lot of progress and seem to get along rather well now. Hope you like and enjoy the process and have fun!
Best regards,
Garvin