<<<<<<< HEAD
This is a WordPress starter theme based on Foundation 5 by Zurb. The purpose of FoundationPress, is to act as a small and handy toolbox that contains the essentials needed to build any design. FoundationPress is meant to be a starting point, not the final product. If you're looking for an all-in-one theme with built-in shortcodes, plugins, fancypancy portfolio templates or whatnot, I'm afraid you have to look elsewhere.
Please fork, copy, modify, delete, share or do whatever you like with this.
All contributions are welcome!
**Please read this. It's totally worth it. **
FoundationPress uses SASS (CSS with superpowers). In short, SASS is a CSS pre-processor that allows you to write styles more effectively and tidy.
All the SASS (.scss) files are compiled into one single css file. To make this happen, we use a tool called Grunt; a task runner that automates repetitive tasks like minification, compilation, linting, etc.
You'll need to have Node.js installed before continuing.
$ cd my-wordpress-folder/wp-content/themes/
$ git clone [email protected]:olefredrik/FoundationPress.git
$ mv FoundationPress your-theme-name
$ cd your-theme-name
$ npm install
# bower install && grunt build will be called via npm scripts when you run npm install.
(Many project force their users to install Bower and Grunt globally. We don't like that and decided to use them via npm scripts
which means, that Grunt and Bower are installed in your node_modules
folder and we'll call them there.)
$ npm run watch
$ npm run build
And you're set!
-
style.css
: Do not worry about this file. (For some reason) it's required by WordPress. All styling are handled in the Sass files described below -
assets/scss/foundation.scss
: Imports for Foundation components and your custom styles. -
assets/scss/config/_settings.scss
: Original Foundation 5 base settings -
assets/scss/config/_custom-settings.scss
: Copy the settings you will modify to this file. Make it your own -
assets/scss/site/*.scss
: Unleash your creativity. Create the files you need (and remember to make import statements for all your files in assets/scss/foundation.scss)
Please note that you must run $npm run build
in your terminal for the styles to be copied and concatinated. See Gruntfile.js for details
assets/javascript/custom
: This is the folder where you put all your custom scripts. Every .js file you put in this directory will be minified and concatinated one single .js file. (This is good for site speed and performance)
Please note that you must run npm run build
in your terminal for the scripts to be copied and concatinated. See Gruntfile.js for details
Version control on these files are turned off because they are automatically generated as part of the build process.
-
assets/stylesheets/foundation.css
: All Sass files are minified and compiled to this file -
assets/stylesheets/foundation.css.map
: CSS source maps -
assets/javascript/vendor
: Vendor scripts are copied fromassets/javascript/components/
to this directory. We use this path for enqueing the vendor scripts in WordPress.
FoundationPress is completely ready to be deployed to and tested by Travis CI for WordPress Coding Standards and best practices. All you need to do to activate the test is sign up and follow the instructions to point Travis CI towards your repo. Just don't forget to update the status badge to point to your repositories unit test. Travis CI
- Responsive images in WordPress with Interchange
- Integration guide for Sensei LMS plugin from WooThemes
- Build a Responsive WordPress theme
- Setting Up a Blog with Foundation and WordPress
- FoundationPress un starter theme pour WordPress (fr)
- Learn to use the _settings file to change almost every aspect of a Foundation site
- Other lessons from Zurb University
- Harvard Center for Green Buildings and Cities
- Conservative Leadership Conference
- Parent-Child Home Program
- Hip and Healthy
- Threadbird blog
- Public House Wines
- Franchise Career Advisors
- Le saint
- Help blog
- Maren Schmidt
- Ciancimino Gallery
- Sokolove Law
- Pandora Children's Parties
- The Rainbow Venues
- Ameronix
- Finnerodja
- Nufloors
- Glossop Cartons
- Ready4Work
- Just Legal
- Vintage and Stuff
- Software for FM
- WP Diamonds
- Storm Arts
- USS Illinois
- INTI International University & Colleges
- Star the project!
- Answer questions that come through GitHub issues
- Report a bug that you find
- Share a theme you've built on top of FoundationPress
- Tweet and blog your experience of FoundationPress.
Pull requests are highly appreciated. More than three dozen amazing people have contributed to FoundationPress (so far). Here are some guidelines to help:
- Solve a problem. Features are great, but even better is cleaning-up and fixing issues in the code that you discover
- Make sure that your code is bug-free and does not introduce new bugs
- Create a pull request
- Verify that all the checks have passed
- Zurb Foundation Docs
- WordPress Codex =======
this is my standard grunt boilerplate for future reference.
- Download
gruntfile.js
&package.json
- Run
npm install
- Run
grunt
- Profit.
gruntfile.js
src
index.jade
scss
styles.scss
js
scripts.js
dist
index.html
css
styles.css
js
scripts.js
- put this into something like yeoman
- find cool new things to add
acdedd8405635b6e828e76a55c8248d565a2ace4