Topic: How to port template to theme?

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

Re: How to port template to theme?

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

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forum/forum/16/german-deutsch/

Re: How to port template to theme?

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

Re: How to port template to theme?

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 http://my.server/theme/MyThemeName< … .html

  • 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).

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

5 (edited by jlm 2011-11-16 16:12:06)

Re: How to port template to theme?

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