Skip to content

omarashzeinhom/Advanced-WordPress-Starter

Repository files navigation

Advanced WordPress Development Environment Theme Starter

  • Check TUTORIAL.md for an in depth installation.
yarn install
  • Start By
gulp 
  • And in Another Terminal
node livereload.js

Description

A luxurious WordPress theme starter built to increase efficiency and speed in building wordpress themes.

Author

  • Author: Omar AbdElRahman

Theme Information

  • 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

Installation

  1. Download the theme zip file.
  2. Go to your WordPress Dashboard.
  3. Navigate to Appearance > Themes.
  4. Click on the "Add New" button.
  5. Upload the zip file and activate the theme.

Usage

Feel free to customize and extend the theme to suit your specific needs.

Production

  • 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);

Styles

The style.css file contains the basic styling for the theme. Customize it further to match your design preferences.

Support

For any inquiries or issues, please contact [Author's Support Email].

Contribution

Contributions are welcome! Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT - see the LICENSE.md file for details.


Features

About

Gulp and WordPress Classic Theme Starter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published