...
When you want to create a theme, the best way is to use the StarterTheme Starte rTheme as a base theme.
Create a new folder under themes/
then download the StarterTheme Starter Theme and copy its files in your new folder.
Download the StarterThemeStarter Theme
Create your theme.yml file
...
Once it’ done you’ll be able to select your theme in your backofficeback office.
Starter Theme
PrestaShop 1.7 introduces a new way for designers to create their theme from scratch: the Starter Theme. The default theme for PS 1.7 is based on the Starter Theme.
...
You can have the theme enable or disabled disable modules when the theme is enabled.
Code Block |
---|
global_settings: modules: to_enable: # All modules below are enabled when # the theme is enabled (and installed if needed). # They are disabled when the theme is disabled. - my-custom-module - yippeeslider to_disable: # All modules below are disabled when the theme is enabled. # They are re-enabled when the theme is disabled. - homeslider - blockwishlist |
You can also Since PrestaShop 1.7.0.0, theme activation can also reset modules:
Code Block |
---|
global_settings:
modules:
to_enable:
...
to_disable:
...
to_reset:
# All modules below are reset when the theme is enabled.
- blockreassurance
- blockwishlist |
You can have the theme create hooks and attach modules to custom and existing hooks when the theme is enabled.
...