...
Tip |
---|
We recommend using the following tooltools:
Internet Explorer can make use of Firebug lite. |
Creating a new theme
Follow the following steps below to create a new theme for PrestaShop.
1. Copy the default theme
- Locate the
../themes
directory in your PrestaShop install, and create a copy of the default../themes/prestashop/
directory. - Rename the duplicate.
2. Modify the CSS sheet
- In the new theme folder (e.g.,
../themes/MyStoreTheme/
), locate the/css
folder. - Open the
global.css
file and modify it according to your needs. This is you are only limited by your creativity – and your knowledge of CSS.
Note: themaintenance.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 | ||
---|---|---|
| ||
|
3. Create a preview screen shot
Once 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
- Go to Back Office >> Preferences >> Appearance >> Themes section.
- Select the new theme and click Save..
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!
You can also sell theme to PrestaShop users through our Addons website!
Integration: where the hooks are
One of the key point of integrating content within a PrestaShop theme is to know where said content is displayed, and therefore where the various hooks are located.
Here is a graphical representation of where these hooks are, for each page. You will find:
- The name of the block.
- The block's id, in order to target it with CSS.
- The block's folder or template file, if you need to make changes to it.
Homepage
Main content areas
Header section
Homepage blocks
Category central column
Product
Account forms & order steps
!_Images^dg006-integration-accntForms.png |border=1!
Account creation form
Order blocks
Addresses
Terms & Conditions and carrier choice
Payment module choice
Site map
Contact form
Stores page