Difference between revisions of "How do Themes work?"

From Spiffy Stores Knowledge Base

 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Themes are a collection of pages, styles, images, assets, and functionality that can be applied to your store to give it a different look and feel.
+
Themes are HTML pages that can include logic to display dynamic information.  
  
Some themes are available to all stores, while other advanced themes are reserved for Platinum and Diamond stores.
+
A theme is used to tell the Spiffy Stores software what your online store should look like and what information should be shown to the customer. In other words, rather than creating separate pages for every individual product in your web store, a template lets you reuse the one page for every product by displaying the product data dynamically.  
Applying themes
 
When you change themes, all of the theme pages and styles for your current theme are overwritten.
 
  
If you’ve done a bit of customization already, you may want to back them up first, just in case you want to go back to them later. Here’s how:
+
A Spiffy Stores Theme can be fully customised using HTML, CSS stylesheets and JavaScript. A theme consists of a collection of files arranged into a number of subfolders or directories.  
  
    * Use the "Download your theme" link in the "Assets" section of the Toolbox to get a zip file of all your current theme’s assets.
+
The <code>templates</code> folder holds all the files that make up each of the different page layouts that make up your store.  
  
 +
Another important folder is the <code>layout</code> folder, which contains the <code>theme.liquid</code> file. This file contains the main layout template for your store.
  
=== Reverting your theme ===
+
The <code>assets</code> folder holds all of the CSS stylesheets, JavaScript scripts, images and font files that are used in your theme.
  
If you've changed your theme and want to revert back, simply upload your saved zip file and presto!
+
The <code>config</code> folder contains the theme settings file and configuration data that is used for building themes that can be configured and edited with the theme editor.
  
=== Creating your own theme ===
+
Note that all of your template files have an extension of <code>.liquid</code>, but they are still just basically HTML files, so if you want to edit them using your favourite HTML editor, just rename them using an <code>.html</code> extension, and then change it back to <code>.liquid</code> before uploading your theme to your store.
  
The default themes not cutting it for ya? No problem. If you’re a Platinum or Diamond store, you can Download one of our themes to get you started, or you can create your own theme from scratch using our powerful Mini Toolbox.
+
If you use Dreamweaver to build sites, [[Using_Dreamweaver_to_edit_your_store_theme|here are some instructions]] showing you how to modify Dreamweaver to edit <code>.liquid</code> files natively.  
  
When you’re finished creating & testing your new theme, zip it up using winzip and upload it through the "Assets" section again.
+
=== Applying themes  ===
  
 +
<gallery heights="200px" widths="200px" class="right">
 +
File:Theme overview 1.png|Design &amp; Assets<br/>Upload/Download theme<br/>Upload &amp; apply theme
 +
</gallery>
  
=== Additional images and assets ===
+
When you upload a new theme, all of the existing theme pages and styles for your current theme are deleted and replaced by the new theme files.
  
If your custom theme requires some additional files, you can upload them to your own server or 3rd-party file host and link to them in your store using their full URL.
+
If you’ve already done some customisation to your theme, then you may want to back up the changes before loading a new theme. If you don't like the new theme, then you can just reload your saved theme.
 +
 
 +
<gallery heights="200px" widths="200px" class="right">
 +
File:Theme overview 2.png|Design &amp; Assets<br/>Upload/Download theme<br/>Download your theme
 +
</gallery>
 +
 
 +
To save your theme, use the "'''Download your theme'''" button in the "'''Design &amp; Assets'''" section of the Toolbox to get a zip file of all your current theme’s assets.
 +
 
 +
=== Restoring a saved theme  ===
 +
 
 +
If you want to restore a previously saved theme, simply upload the theme zip file using the "'''Upload &amp; apply theme'''" button.
 +
 
 +
=== Creating your own theme  ===
 +
 
 +
The default themes not cutting it for you? No problem. If you want to have a go at building a new theme for your store, you can download one of our standard themes from the Theme Gallery in your toolbox to get you started, or you can create your own theme from scratch using any popular website building application.
 +
 
 +
When you’ve finished creating and testing your new theme, create a zip file of the theme files, ensuring that you maintain the required folder names for the theme. You can have a look at one of the themes from the Gallery to see what the folder structure should be. Once the theme zip file has been created, upload it using the "'''Upload &amp; apply theme'''" button.
 +
 
 +
=== Additional images and assets  ===
 +
 
 +
If your custom theme requires some additional files, you can upload them to your own server or another third-party file hosting service and link to them from your store theme using the full URL address of the file.

Latest revision as of 07:02, 6 November 2020

Themes are HTML pages that can include logic to display dynamic information.

A theme is used to tell the Spiffy Stores software what your online store should look like and what information should be shown to the customer. In other words, rather than creating separate pages for every individual product in your web store, a template lets you reuse the one page for every product by displaying the product data dynamically.

A Spiffy Stores Theme can be fully customised using HTML, CSS stylesheets and JavaScript. A theme consists of a collection of files arranged into a number of subfolders or directories.

The templates folder holds all the files that make up each of the different page layouts that make up your store.

Another important folder is the layout folder, which contains the theme.liquid file. This file contains the main layout template for your store.

The assets folder holds all of the CSS stylesheets, JavaScript scripts, images and font files that are used in your theme.

The config folder contains the theme settings file and configuration data that is used for building themes that can be configured and edited with the theme editor.

Note that all of your template files have an extension of .liquid, but they are still just basically HTML files, so if you want to edit them using your favourite HTML editor, just rename them using an .html extension, and then change it back to .liquid before uploading your theme to your store.

If you use Dreamweaver to build sites, here are some instructions showing you how to modify Dreamweaver to edit .liquid files natively.

Applying themes

When you upload a new theme, all of the existing theme pages and styles for your current theme are deleted and replaced by the new theme files.

If you’ve already done some customisation to your theme, then you may want to back up the changes before loading a new theme. If you don't like the new theme, then you can just reload your saved theme.

To save your theme, use the "Download your theme" button in the "Design & Assets" section of the Toolbox to get a zip file of all your current theme’s assets.

Restoring a saved theme

If you want to restore a previously saved theme, simply upload the theme zip file using the "Upload & apply theme" button.

Creating your own theme

The default themes not cutting it for you? No problem. If you want to have a go at building a new theme for your store, you can download one of our standard themes from the Theme Gallery in your toolbox to get you started, or you can create your own theme from scratch using any popular website building application.

When you’ve finished creating and testing your new theme, create a zip file of the theme files, ensuring that you maintain the required folder names for the theme. You can have a look at one of the themes from the Gallery to see what the folder structure should be. Once the theme zip file has been created, upload it using the "Upload & apply theme" button.

Additional images and assets

If your custom theme requires some additional files, you can upload them to your own server or another third-party file hosting service and link to them from your store theme using the full URL address of the file.