- Check TUTORIAL.md for an in depth installation.
yarn install
- Start By
gulp
- And in Another Terminal
node livereload.js
A luxurious WordPress theme starter built to increase efficiency and speed in building wordpress themes.
- Author: Omar AbdElRahman
- Theme Name: Advanced WordPress Development Environment Theme Starter
- Version: 1.1
- License: MIT
- License URI: License URL
- Tags: blog, e-commerce, portfolio
- Text Domain: zayno-theme
- Download the theme zip file.
- Go to your WordPress Dashboard.
- Navigate to
Appearance > Themes
. - Click on the "Add New" button.
- Upload the zip file and activate the theme.
Feel free to customize and extend the theme to suit your specific needs.
- Inside
functions.php
just update the DEV_ENVIRONMENT constant to false - Its adviced to remove the
SCSS/JS
entirely & not upload it to production. - Change in
webpack.config.js
mode: 'development',
// Production mode
mode: 'production'
// Define a constant to indicate whether it's a development environment
define('DEV_ENVIRONMENT', true);
// Production
// define('DEV_ENVIRONMENT', false);
// Function to include Livereload script in the functions.php
function liveReload() {
if (defined('DEV_ENVIRONMENT') && DEV_ENVIRONMENT) {
echo '<script src="http://' . $_SERVER['HTTP_HOST'] . ':35729/livereload.js?snipver=1"></script>';
}
}
// Hook the function to the wp_footer action with priority 100
add_action('wp_footer', 'liveReload', 100);
The style.css
file contains the basic styling for the theme. Customize it further to match your design preferences.
For any inquiries or issues, please contact [Author's Support Email].
Contributions are welcome! Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT - see the LICENSE.md file for details.
-
1.0 Release
-
1.1 Updated Dev Packages and removed deprecation warning refer toBreaking Change: Legacy JS API - Sass Docs & WebPack - breaking-changes/legacy-js-api