WordPress starter theme with a modern development workflow without any PHP dependencies required and simple deployment.
- Flat and simple to understand theme file structure following best WordPress' standards.
- Laravel Mix with full support SASS, ES6, autoprefixing and Browsersync.
- Simple templating engine that wraps your template with header, footer and base structure automatically.
- Custom module approach that allows you to quickly build entire site on separated components based on ACF's Flexible Content with full nesting, reusing and previewing support.
- Bootstrap 4 with full Contact Form 7 support and some framework-friendly filters.
- stylelint with stylelint-prettier and stylelint-config-recess-order.
- ESLint with eslint-config-airbnb-base, eslint-plugin-vue and prettier-eslint.
- Polyfill.io for dynamic JavaScript polyfills.
- Lots of useful helpers
- TGM Plugin Activation to manage your plugin dependencies across different environments.
Make sure all dependencies have been installed before moving on:
themes/your-theme-name/ # → Root of your theme
├── acf-json/ # → Home of your ACF config
├── acf-modules/ # → Home of your ACF modules
├── dist/ # → Built theme assets (never edit)
├── js/ # → Theme JS
├── languages/ # → Theme language files (optional)
├── sass/ # → Theme stylesheets
├── src/ # → Theme PHP logic
│ ├── Helpers/ # → Helper source files
│ ├── vendor/ # → External code fetched from elsewhere (never edit)
│ ├── assets.php # → Theme assets
│ ├── filters.php # → Theme filters
│ ├── helpers.php # → Helper functions
│ ├── navs.php # → Theme navigations
│ ├── option-pages.php # → Theme Option Pages
│ ├── plugins.php # → Theme Plugin Dependencies
│ ├── post-types.php # → Theme Custom Post Types
│ └── supports.php # → Theme Basic Supports
├── static/ # → Theme static assets
│ ├── fonts/ # → Theme fonts
│ ├── images/ # → Theme images
│ └── vectors/ # → Theme SVG files
├── templates/ # → Theme templates
│ ├── partials/ # → Partial templates
│ ├── content-search.php # → Search template
│ ├── content-single-page.php # → Page template (modular)
│ └── content.php # → Index (archive) template
├── 404.php # → 404 template
├── base.php # → Base template
├── footer.php # → Footer template
├── functions.php # → Helpers autoloader, theme includes
├── header.php # → Header template
├── index.php # → Never manually edit
├── screenshot.png # → Theme screenshot for WP admin
├── style.css # → Theme meta information
└── webpack.mix.js/ # → Laravel Mix config- Run
yarnfrom the theme directory to install dependencies. - Update your local development domain in
webpack.mix.js. - Run
yarn watchto compile assets and run Browsersync.
yarn watch— Compile assets when file changes are made, start Browsersync sessionyarn dev— Compile and bundle your assetsyarn lint— Lint your assetsyarn prod— Compile assets for production
Suggested methods of deployment are:
All you need to do is to make sure that bundled assets created by yarn prod command lands on your server besides all your regular theme files.
Suggested Continuous Integration software are:
All examples of deployments are included.