GetSimple Support Forum
How to port template to theme? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10)
+--- Thread: How to port template to theme? (/showthread.php?tid=2393)



How to port template to theme? - csacsa - 2011-11-15

Hi,
Could somebody help me and explain step by step how to port a template to a theme?
Thanks
Best wishes
Carl


How to port template to theme? - Connie - 2011-11-15

Carl,

what do you want to know exactly?

Isn't the wiki clear enough? See here:
http://get-simple.info/wiki/themes:creation

The list of template tags will tell you which parts of the template will be created by GS, and you can study the default templates to find out the functionality also

please tell us your questions, we will be glad to assist you

Cheers, Connie


How to port template to theme? - csacsa - 2011-11-15

Thank you for quick reply.
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?
Best wishes


How to port template to theme? - mvlcek - 2011-11-16

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.
You should now be able to see the original template by directly opening the HTML from explorer (or similar) or entering the URL [url]http://my.server/theme/MyThemeName/nameofthehtml.html[/url]
  • 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()
(see wiki for more information).


How to port template to theme? - jlm - 2011-11-17

hi,

this is what can be done in 10 minutes
original theme http://www.freecsstemplates.org/previews/nightvision/ #
here the same theme changed to getsimple http://gs.comlu.com/
sure must be applied some changes to have the same look
but in no time you can set up a small site quickly ... no?

of course using the method described by mvlcek