Welcome to Croft, the Foundation WordPress starter theme.
Croft is built with search-engine optimization (SEO) in mind by utilizing the most current HTML5 conventions and Schema.org microdata. Croft combines ZURB's Foundation, the most advanced responsive front-end framework in the world, and Hybrid Core, the developer friendly theme framework created by one of the best WordPress developers around, Justin Tadlock.
Croft isn't mean't to be used as is, it's mean't to used to create your next masterpeice!
Croft requires a minimum of WordPress 4.5.
Croft comes with all of the features you love from Foundation for Sites, along with minimal styling to cover all WordPress core components. The theme comes setup to be used with Foundations Sass mixins (default and my preferred method) or optionally with classes.
Croft is built with Bower and Gulp usage in mind and is the recommended way to use this theme. However theme assets should compile just fine using other tools.
- Using the command line, navigate to your theme directory
- Run
npm install
to install Gulp plugins and Bower packages and copy Hybrid Core to/inc/hybrid-core/
. - Run
gulp
to confirm everything is working
Croft comes with a few useful Gulp tasks out of the box:
The default Gulp task. Runs the build
task and watches files for changes.
Cleans and removes the contents of the dist
directory.
Copies Hybrid Core files from bower_components
to inc/hybrid-core
.
Compiles and minifies the style.scss
stylesheet.
Compiles the editor-style.scss
stylesheet into the /assets/css/
directory.
Used to style the WordPress visual editor.
Concats and minifies the main JS file.
A simple task for creating a pot file for your theme so it's ready for translation.
Runs the clean, copy:hc, sass and javascript tasks.
This will rename all references to the theme text domain, function names and any other theme specific names.
To use this task please make sure you change the THEME
variable in gulpfile.js
before running this task.
Copies all final theme files to the dist
folder.
Creates a zip file of the dist
directory ready to distribute the theme.
The following resources are included or used in part within the theme package.
- Foundation by Zurb, Inc. - Licensed under the MIT License.
- Genericons by Joen Asmussen - Licensed under the GPL, version 2 or later.
- Hybrid Core by Justin Tadlock - Licensed under the GPL, version 2 or later.
- Underscores by Automattic, Inc. - Licensed under the GPL, version 2 or later.
All other resources and theme elements are licensed under the GNU GPL, version 2 or later.
2016 © Brett Mason.