User Tools

Site Tools


how_to_create_a_template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to_create_a_template [2017/09/10 12:22]
5.150.200.226 [Use A Different Layout For The Start Page]
how_to_create_a_template [2019/05/12 01:55] (current)
172.69.138.52 [Template Settings]
Line 8: Line 8:
  
   - Copy the folder **~/​includes/​templates/​default.catalog/​** and all of it's contents to a new folder e.g. **~/​includes/​templates/​mytheme.catalog/​**.   - Copy the folder **~/​includes/​templates/​default.catalog/​** and all of it's contents to a new folder e.g. **~/​includes/​templates/​mytheme.catalog/​**.
-  - Clear the contents of the subdirectory **~/​includes/​templates/​mytheme.catalog/​views/​**. This is because LiteCart will use the default view files if there are none in the new template. Basically ​we just want to store the views we are overriding inside the new template.+  - Clear the contents of the subdirectory **~/​includes/​templates/​mytheme.catalog/​views/​**. This is because LiteCart will use the default view files if there are none in the new template. Basically ​you only need to store the views we are overriding inside the new template.
   - Rename **~/​includes/​templates/​mytheme.catalog/​layouts/​default.inc.php** which is the main layout unless nothing else is specified.   - Rename **~/​includes/​templates/​mytheme.catalog/​layouts/​default.inc.php** which is the main layout unless nothing else is specified.
   - Activate the new theme in Admin -> Appearance   - Activate the new theme in Admin -> Appearance
Line 34: Line 34:
  
 <​file>​ <​file>​
-  ​$template_config = array(+  ​return ​array(
     array(     array(
       '​key'​ => '​background',​       '​key'​ => '​background',​
how_to_create_a_template.1505038967.txt.gz ยท Last modified: 2017/09/10 12:22 by 5.150.200.226