Access to PrestaShop corporate website
French English Spanish Change language
Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop
  157 users online

PrestaShop Wiki

Themes


Table of Contents


Anyone with knowledge of CSS and image manipulation can create a new theme for PrestaShop.

Tip: We recommend using the Firefox plugin Firebug for easy comparison and debugging between your CSS and the output.

Follow the steps below to create a new theme for PrestaShop.

1. Copy the default theme

  1. Locate the ../themes directory and create a copy of the default ../themes/prestashop/ directory.
  2. Rename the duplicate.

ba3e3c036e8224ddff6a95b58599ca45

2. Modify the CSS sheet

  1. In the new theme folder (e.g., ../themes/MyStoreTheme/), locate the /css folder.
  2. Open the file global.css and modify it according to your needs.
    Note: the file maintenance.css located in the same folder controls the layout of the Maintenance Mode page.
  3. New or modified images must be placed in the new theme’s /img folder (e.g., ../themes/MyStoreTheme/img).

Tips from the PrestaShop development team

  • Where possible, use CSS instead of HTML (e.g., for tables)
  • Validate your XHTML code on w3c.org
  • Reduce images and pictures size by using compression
  • Test your theme on several Web browsers
  • Keep filenames lowercase
  • Homepage text and logo are modifiable directly via the Back Office. Go to Back Office >> Modules >> Home text editor and click Configure.
  • Change the positioning of modules on a page or pages by transplanting them via the Back Office:
    1. Go to Back Office >> Modules >> Positions
    2. Click Transplant a module.
    3. In the drop-down list, select the module you want to move.
    4. In the second drop-down list, select where you want to transplant the module.
    5. Type the name of those files you do not want the module to appear (optional).
    6. Click Save.

3. Create preview screen shot

When your theme is ready, you must place a file representing the theme called preview.jpg in the theme’s root folder (e.g., ../themes/MyStoreTheme). This file must be a 100 × 100 pixels .jpg file.

4. Test your theme

  1. Go to Back Office >> Preferences >> Appearance >> Themes section
  2. Select the new theme and click Save.

e31e75387446148cf4c2109038893fed

Share your themes!

Show off your hard work, get feedback, and build your reputation by sharing your theme in the Themes section of our Forum.

Wiki

Search :

Navigation