Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

We recommend using the following tools:

  • Firefox: Firebug is a free extension for easy comparison and debugging between your CSS and the output.
  • Firefox/Chrome: Web Developer adds many handy web developer tools to your browser.
  • Safari/Chrome: enable the Web Inspector.
  • Opera: Dragonfly, a fully-featured debugging environment.
  • Internet Explorer 8+: Developer Tools are available through the Tools menu.

Internet Explorer users can also make use of Firebug lite.

...

Customizing the default theme

Follow the following steps below to create a new theme for PrestaShopyour own theme out of the PrestaShop default theme.

1. Copy the default theme

...

2. Modify the CSS sheet

  • In the new customized theme folder (e.g., ../themes/MyStoreTheme/), locate the /css folder.
  • Open the global.css file and modify change it according to your needs. This is where you are only limited by your creativity – and your knowledge of CSS.
    Note: the maintenance.css file, located in the same folder, controls the layout of the Maintenance Mode page.
  • New or modified images must be placed in the new theme's /img folder (e.g., ../themes/MyStoreTheme/img).
Tip
titleTips from the PrestaShop development team
  • Where possible, use CSS instead of HTML (e.g., only use tables for tabular data, not for layout).
  • Validate your XHTML and CSS code using the W3C tools: HTML validator, CSS validator.
  • Reduce images and pictures size by using compression. Yahoo!'s SmushIt is an excellent tool for that.
  • Test your theme on several Web browsers, not only Internet Explorer. Mozilla Firefox, WebKit browsers (Apple Safari, Google Chrome) and Opera are all to be considered, but you should most of all check that it works well the browsers your website is mostly visited with. If your website has not launched yet, have a look at your country browser stats. For instance, here are the browser stats for France, from 2010 to 2011.
  • Keep filenames in lowercase.
  • Remember that the homepage text and logo are modifiable directly via the Back Office. Go to Back Office >> Modules >> Home text editor and click Configurethe back-office, "Modules" tab then "Themes" sub-tab.

3. Create a preview screen shot

Once your customized theme is ready, you must place a file representing the theme, called preview.jpg, in the theme’s 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 back-office's "Preferences" tab, then its "Appearance" and its "Themes" section.
  2. Select the new theme and click Save..

...