A WordPress framework for the impatient.
- Make a new folder in your theme's root directory called
inc
- Clone this folder into
inc/traction-lib
- Include
traction.core-options.php
andtraction.core.php
or run with the sample functions.php file - Move the
scss-includes
folder fromtraction-lib/samples
intoinc/scss-includes
- Move
style.scss
toinc/style.scss
- Edit
scss-includes/_variables.scss
and ` - Compile and profit.
Your directory structure should look like this:
theme/
├── functions.php
├── inc/
│ └── scss-includes/
│ └── style.scss
│ └── traction-lib/
TBD on an explicit explanation of functions, SCSS mixins, etc. Please review the inline documentation in the meantime.
This has been a personal framework that I've been hacking together for the last two years in order to expedite my own theme building. It includes a lot of code I've found relevant and helpful - from a variety of sources like the Codex, StackExchange, StackOverflow, various blogs, various plugins, and more - and some of it is uncredited.
Traction is not meant for personal gain. If I've pinched your code without giving you proper due, please notify me immediately, and I will either remove it or add the credit.
The goal of this framework is to help new theme builders spend less time navigating back-end WP code and to spend more time creating a refined front-end experience.
GPLv2 License except where noted or for code I have not written.
Some code is also licensed under MIT, and these portions are noted.