Child theme starter for Storefront.
The following things are configured in the child theme:
- Script loading
- Frontend JavaScript detection
- Default values / Initial configuration of Storechild and it's integrations with the Storefront Extensions.
- Child theme Javascript file
Storechild uses Storechild_Customizer::return_storechild_defaults()
and Storechild_Integrations::return_storechild_extension_defaults()
to automatically set some defaults for you in the customizer. Use the example to set defaults for any settings you want
to change.
Storechild uses Grunt to fulfill various tasks such as;
- Sass compilation into CSS
- RTL CSS generation
- Javascript minification + linting
This can all be done automatically using the watch
task. cd
into the storechild
directory in terminal then run
grunt watch
. This will monitor the files in the theme and compile / minify etc as and when they're modified. Remember
to install the project dependencies first with npm install
.
There's a great getting started guide on the Grunt web site. You will also need install Node if you haven't already. There's information on how to do that here.