Skip to content
Ollie edited this page Nov 20, 2015 · 6 revisions

Wordpress Project Boilerplate

A internal Wordpress Theme boilerplate for handling new WordPress-based projects.

  • bower
  • nodejs & npm
  • WP Cli (Optional, but recommended)

Installation

Dependencies

Bower Packages: We use the same bower packages as our Project Workflow.

Gulp Tasks: We use the same gulp tasks as our Project Workflow.

Installing the theme itself

Via WP Cli

wp theme install https://github.com/rapidwebltd/wordpress-project-boilerplate/archive/master.zip --activate

Via the manual method

Download the zip file and extract it to the wp-content/themes/ folder of your existing Wordpress Installation.

Theme Structure

js/ - Unminified JS files
layout/ - Site image assets
layout_inc/head-script.php - <head> element including CSS include
layout_inc/header.php - Header include
layout_inc/nav.php - Navigation bar include
layout_inc/footer.php - Footer include
layout_inc/footer-script.php - Page specific & global JS includes / any deferred assets loading via JS goes here 
less/ - Unminified LESS files
public/css/ - Minified CSS file
public/js/ - Minified & Concatenated JS file

Clone this wiki locally