2011-11-16, 22:29:31
csacsa Wrote:Sorry but i not so good at this yet and i not really understand the wiki so that is why i would need a step by step description for dummies.
Let´s say i find a theme and would like to bring it in to GetSimple. How to do so the theme looks exactly the same i GS?
- Create a directory /theme/MyThemeName
- Copy all files of the template including subdirectories into this directory
- Make sure this directory has a .htaccess file with content Allow from all.
- rename the HTML file to template.php
- replace <title>...</title> with <title><?php get_page_clean_title(); ?></title>.
- assuming the template has a menu in the form <ul...><li>Item 1</li><li>...</li>...</ul>, replace this with <ul...><?php get_navigation(return_page_slug()); ?></ul>.
- replace the example content, which should be replaced with the actual page content, with <?php get_page_content(); ?>
Optionally use additional functions like the following instead of the example content of the template:
- get_header()
- get_footer()
- get_component()