Exporting your theme

Creating a valid zip file

There is no longer any theme data in the database with PrestaShop 1.7. Hence a theme is installed as soon as it’s on the disk.

If you want to theme to appears in the backoffice, it’s simply have to contain a config/theme.yml file. This will only display it, if you want to select it as your active theme, it has to be valid. Read :doc:What makes a valid theme <testing>

Export current theme

Once it’s active you can export your theme using the “Export current theme” button or use the command from your terminal.

php bin/console prestashop:theme:export THEME_DIRECTORY_NAME

Use php app/console instead of php bin/console for versions prior to 1.7.4

What is exported

Exporting your theme using the button or the command line will export the following data:

  • All theme files in directory
  • Dependencies specified in theme.yml (See theme.yml doc)
  • Theme translations

Distributing on Addons

Please note that if you want to sell your theme on the PrestaShop Addons, there are a few rules to follow: