Built on the incredible Mozaik starter theme
This is the WordPress theme for the Jared Bracci website.
- Avoid committing the built theme to the project repository
- Avoid committing the
wp-uploadsdirectory to the project repository - Avoid making changes directly to the built theme -- Always use the build process
- In production avoid uploading the theme development directory to a public server
- It is good practice to enable
WP_DEBUGin yourwp-config.phpfile, but only during development
- Install WordPress and clear it of unnecessary default themes & plugins
- Clone/Download the contents of this repository into a directory in your WordPress
wp-content/themesdirectory (eg: "my-theme_dev") this will be your "dev theme" - Open the terminal and navigate to the dev theme, eg:
cd wp-content/themes/<my-theme>_dev - (Note: The next steps require nodejs @5.0.0 and gulpjs @^3.9.0)
- Run
npm installto install all dev dependencies - Change the
project.config.jsfile with your new theme's configuration - Run
gulp buildto generate the "built theme" for the first time - Log in to the admin and enable the built theme (Note: The dev theme is not a valid theme, that's fine! Don't delete it or try to enable it!)
- Start Developing!
- Run
gulpto begin the dev build process that uses libsass, browser-sync and webpack - Develop your theme in the
/assetsand/themedirectories, the "built theme" will be generated by gulp - Optional stuff:
- use
npm install --save <module(s)>orbower install --save <module(s)>to easily manage js dependencies, then usevar <module> = require('<module>');orimport <module> from '<module>';anywhere in your js files you want to use them - explore the
/librarydirectory in the dev theme for anything useful to your project.
- use
- Delete files you are not using from inside the
/themedirectory - Add a screenshot.png
- Before deploying run
gulp buildto generate a production ready version of the built theme - Deploy the built theme directory, not the dev directory
This Theme is licensed under the MIT license see license.txt.