A Wordpress child theme and custom theme boilerplate for 2017 and 2018.
Gulp, Browsersync, SASS files etc
Source files for JavaScript, SCSS and Image assets.
It will be compiled to '/assets' folder
Go to wp-content
> themes
directory
cd wp-content/themes
git clone
git clone <git-path>
Install the packages, cd to folder
twentyseventeen-child
npm install
Serve the project
gulp
in Nginx, allow subpages routing
location / {
try_files $uri $uri/ /index.php?$args;
}
# comment out this line if exist
# if (!-d $request_filename) {
# rewrite ^/(.+)/$ /$1 permanent;
#}
Inspired from https://ahmadawais.com/my-advanced-gulp-workflow-for-wordpress-themes/