This starter kit should allow you to start the development of a custom theme for Wordpress 5.x fairly quick and easy using Webpack and Docker. Development is happening with the SCSS/JS files in the /assets
folder and the PHP files in the /theme
folder. The compiled SCSS/JS assets are then copied to the /theme/build
folder and combined with the PHP files. The /theme
folder contains your theme and is linked to the Wordpress running inside the Docker container. Foundation is used as the front-end framework (https://foundation.zurb.com/).
- node / npm - https://nodejs.org/
- docker / docker-compose - https://www.docker.com/
Inside the folder run the following commands:
npm install
docker-compose up
- On the first start, open http://localhost:8080 to set up Wordpress.
npm run-script build
assets
Contains the SCSS/JS files for development.theme
Contains the PHP files for the theme and the compiled CSS/JS assets. Basically this is the theme...wp-content/plugins
The plugin folder of Wordpress, here plugins can also be manually uploaded.
/theme
->/var/www/html/wp-content/themes/custom_theme
/wp-content/plugins
->/var/www/html/wp-content/plugins
.htaccess
->/var/www/html/.htaccess
Just upload the /theme
folder and - if necessary - also the /wp-content
folder to upload the plugins and the .htaccess
file.