Lab Date: July 21, 2016
This hands-on coding lab walks you through the entire process of converting a standard Genesis theme into a developer-friendly, modular theme. The purpose of this lab is to teach you about the following:
- Techniques to save you time and time as you are building your own workflow and starter theme
- Modularity for PHP and CSS
- How to break up your code to be more readable, reusable, and thus, more maintainable.
- How to convert a
style.css
file into a Sass module - How to setup Gulp as your task runner to process the Sass into
style.css
and a minified versionstyle.min.css
- How to build your own modern workflow with Composer, Sass, Gulp, Bourbon, and Neat.
There are 2 separate themes in this repository:
- Version 2.2.4 of the Genesis Sample Theme
- The final Developers Starter Child Theme - it's the final version that you will build in this lab
Late in 2016, StudioPress upgraded the Sample theme to include a WooCommerce module. Once you complete this lab, you will be able to add the new updates to your Developers theme by yourself.
This child theme requires the following dependencies:
To install this repository, do the following:
- Open up terminal and navigate to the
wp-content/themes
folder. - Then type: git clone [email protected]:KnowTheCode/Genesis-Developer-Starter-Lab.git
- Then move both themes out of the new folder and into the root of the
wp-content/themes
folder. - You can then delete the new folder, as it's not needed any longer.
You will use the Genesis Sample theme in this repository for the lab.
All feedback, bug reports, and pull requests are welcome.