2017 © Pedro Pelรกez
 

wordpress-theme genesis-starter-theme

Genesis starter theme with a modern development workflow.

image

seothemes/genesis-starter-theme

Genesis starter theme with a modern development workflow.

  • Wednesday, July 25, 2018
  • by seothemes
  • Repository
  • 31 Watchers
  • 87 Stars
  • 96 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Genesis Starter Theme

WordPress License, (*1)

A developer-friendly starter theme used for creating commercial child themes for the Genesis Framework., (*2)

It uses Laravel Mix as a build tool to automate mundane development tasks like compiling SCSS and minifying images., (*3)

Check out the live demo, (*4)

Genesis Starter Theme screenshot, (*5)

Table of Contents

Features

The Genesis Starter Theme aims to modernize, organize and enhance some aspects of Genesis child theme development. Take a look at what is waiting for you:, (*6)

Requirements

Requirement How to Check How to Install
PHP >= 5.4 php -v php.net
WordPress >= 5.2 Admin Footer wordpress.org
Genesis >= 3.1.1 Theme Page studiopress.com
Composer >= 1.5.0 composer --version getcomposer.org
Node >= 9.10.1 node -v nodejs.org
NPM >= 5.6.0 npm -v npm.js
Yarn >= 0.2.x yarn -v yarnpkg.com

Installation

One line command:

Install the latest development version of the Genesis Starter Theme using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):, (*7)

composer create-project seothemes/genesis-starter-theme your-theme-name dev-master && cd "$(\ls -1dt ./*/ | head -n 1)" && npm install && npm run build

Individual commands:

Install the latest development version of the Genesis Starter Theme using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):, (*8)

composer create-project seothemes/genesis-starter-theme your-theme-name dev-master

Navigate into the theme's root directory:, (*9)

cd your-theme-name

Install node dependencies, build the theme assets and kick-off BrowserSync:, (*10)

npm install && npm run build

Structure

your-theme-name/    # โ†’ Root directory
โ”œโ”€โ”€ assets/         # โ†’ Front-end assets
โ”œโ”€โ”€ config/         # โ†’ Config directory
โ”œโ”€โ”€ lib/            # โ†’ Theme functions
โ”‚   โ”œโ”€โ”€ functions/  # โ†’ General functions
โ”‚   โ”œโ”€โ”€ plugins/    # โ†’ Plugin functions
โ”‚   โ”œโ”€โ”€ shortcodes/ # โ†’ Shortcode functions
โ”‚   โ”œโ”€โ”€ structure/  # โ†’ Structural functions
โ”‚   โ””โ”€โ”€ init.php    # โ†’ File autoloader 
โ”œโ”€โ”€ templates/      # โ†’ Page templates
โ”œโ”€โ”€ tests/          # โ†’ PHP Unit tests
โ”œโ”€โ”€ vendor/         # โ†’ Composer packages
โ”œโ”€โ”€ node_modules/   # โ†’ Node.js packages
โ”œโ”€โ”€ composer.json   # โ†’ Composer settings
โ”œโ”€โ”€ package.json    # โ†’ Node dependencies
โ”œโ”€โ”€ webpack.mix.js  # โ†’ Laravel mix config
โ”œโ”€โ”€ screenshot.png  # โ†’ Theme screenshot
โ”œโ”€โ”€ functions.php   # โ†’ Loads init files
โ””โ”€โ”€ style.css       # โ†’ Blank stylesheet

Usage

Project details such as theme name, author, version number etc should only ever be changed from the package.json file. Laravel Mix reads this file and automatically places the relevant information to the correct locations throughout the theme., (*11)

Static assets are organized in the assets directory. This folder contains theme scripts, styles, images, fonts, views and language translation files. All of the main theme styles are contained in the assets/css/main.css file, the style.css file at the root of the theme is left blank intentionally and only contains the required stylesheet header comment., (*12)

Autoloading classes and files

Classes

The Genesis Starter Theme automatically loads classes placed in the lib/classes/ directory via the Composer autoloader. Once you have added your additional files, run the following command to regenerate the autoloader:, (*13)

composer dump-autoload --no-dev

Files

File loading is handled by the lib/init.php file. Simply add or remove files from the directory/filename array., (*14)

Development

Please refer to the Laravel Mix documentation for further information on how to use the webpack.mix.js file., (*15)

All build tasks are located in the theme's package.json file, under the scripts section., (*16)

Contributing

Contributions are welcome from everyone. We have contributing guidelines to help you get started., (*17)

See also the list of contributors who participated in this project., (*18)

Special Thanks

A shout out to anyone who's code was used in or provided inspiration to this project:, (*19)

Christoph Herr, Gary Jones, Tonya Mork, Tim Jensen, Justin Tadlock, (*20)

The Versions

25/07 2018

dev-master

9999999-dev

Genesis starter theme with a modern development workflow.

  Sources   Download

GPL-2.0-or-later

The Requires

 

wordpress wordpress-theme-development genesis-framework

17/07 2018

dev-reorg

dev-reorg

A starter theme for the Genesis Framework with modern build tools.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

wordpress wordpress-theme-development genesis-framework