edit a theme? Posted by jusmar74 09 Jan 2007 12:26 UTC posts: 23 ☆ ☆ ☆ Is there an easy way to make a little modification to a theme? Basically, i would just like to add a "main picture" to the defaul theme(after intalling), think it is called neat? Thanks again, Jussi
Posted by Gary Cunningham-Lee 09 Jan 2007 13:51 UTC posts: 4675 ☆ ☆ ☆ > Is there an easy way to make a little modification to a theme? Basically, i would just like to add a "main picture" to the defaul theme(after intalling), think it is called neat? Yes, you can edit the appropriate file in the templates/styles/neat/ directory — maybe tiki.tpl or tiki-top_bar.tpl, depending on where you want to put the picture. tiki.tpl lays out the whole page and tiki-top_bar.tpl is to display the line at the page top. See Template Overview for more information on editing template files. -- Gary
Posted by jusmar74 09 Jan 2007 14:13 UTC posts: 23 ☆ ☆ ☆ > > Is there an easy way to make a little modification to a theme? Basically, i would just like to add a "main picture" to the defaul theme(after intalling), think it is called neat? > > Yes, you can edit the appropriate file in the templates/styles/neat/ directory — maybe tiki.tpl or tiki-top_bar.tpl, depending on where you want to put the picture. tiki.tpl lays out the whole page and tiki-top_bar.tpl is to display the line at the page top. > > See Template Overview for more information on editing template files. > > — Gary CAn i do it just by going to http://mysite.com/tiki/tiki-edit_templates.php and just editing tiki-top_bar.tpl? Does this editing remove all the content from the site, i think i saw something like that written somewhere? Or deos the removing of content just happen when i change the whole theme? Thanks again, Jussi
Posted by Gary Cunningham-Lee 10 Jan 2007 00:53 UTC posts: 4675 ☆ ☆ ☆ > CAn i do it just by going to http://mysite.com/tiki/tiki-edit_templates.php and just editing tiki-top_bar.tpl? Does this editing remove all the content from the site, i think i saw something like that written somewhere? Or deos the removing of content just happen when i change the whole theme? Editing a template file doesn't remove any content, which is mostly stored in the database. The template (.tpl) files only affect the visual layout and function of the page. I don't use on-site template editing myself, but I assume you can edit tiki-top_bar.tpl there. Keep in mind that if the Neat theme uses its own tiki-top_bar.tpl file (templates/styles/neat/tiki-top_bar.tpl), so that's the one you should edit, not the one in templates directory. In case anything goes wrong and the edited file causes problems, you can save a copy locally before doing the edit, or just upload another copy from the Tiki package. -- Gary