FoundationPress 0,1,1,0,3,0,11,2 editorconfig travis-ci Bower Packagist gulp npm

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb

FoundationPress Build Status


This is a starter-theme for WordPress based on Foundation 6, the most advanced responsive (mobile-first) framework in the world. 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.

Please fork, copy, modify, delete, share or do whatever you like with this.

All contributions are welcome!


This project requires Node.js v4.x.x to v6.9.x to be installed on your machine. Please be aware that you will most likely encounter problems with the installation if you are using v7.1.0 with all the latest features.

FoundationPress uses Sass (CSS with superpowers). In short, Sass is a CSS pre-processor that allows you to write styles more effectively and tidy.

The Sass is compiled using libsass, which requires the GCC to be installed on your machine. Windows users can install it through MinGW, and Mac users can install it through the Xcode Command-line Tools.

If you have not worked with a Sass-based workflow before, I would recommend reading FoundationPress for beginners, a short blog post that explains what you need to know.


1. Clone the repository and install with npm

$ cd my-wordpress-folder/wp-content/themes/
$ git clone
$ cd FoundationPress
$ npm install

2. While you’re working on your project, run:

$ npm run watch

If you want to take advantage of browser-sync (automatic browser refresh when a file is saved), simply open your Gulpfile.js and put your local dev-server address (e.g localhost) in this field var URL = ''; , save the Gulpfile and run

$ npm run watch

3. For building all the assets, run:

$ npm run build

Build all assets minified and without sourcemaps:

$ npm run production

4. To create a .zip file of your theme, run:

$ npm run package

Running this command will build and minify the theme’s assets and place a .zip archive of the theme in the packaged directory. This excludes the developer files/directories from your theme like node_modules, assets/components, etc. to keep the theme lightweight for transferring the theme to a staging or production server.


  • 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: Make imports for all your styles here

  • assets/scss/global/*.scss: Global settings

  • assets/scss/components/*.scss: Buttons etc.

  • assets/scss/modules/*.scss: Topbar, footer etc.

  • assets/scss/templates/*.scss: Page template spesific styling

Please note that you must run npm run build or npm run watch in your terminal for the styles to be copied and concatenated. See the Gulpfile.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 concatenated one single .js file. (This is good for site speed and performance)

Please note that you must run npm run build or npm run watch in your terminal for the scripts to be copied and concatenated. See Gulpfile.js for details

The main styles and scripts generated by the build

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/ CSS source maps

  • assets/javascript/vendor: Vendor scripts are copied from assets/components/ to this directory. We use this path for enqueing the vendor scripts in WordPress.

Check For WordPress Coding Standards

Foundation comes with everything you need to run tests that will check your theme for WordPress Coding Standards. To enable this feature you’ll need to install PHP Codesniffer, along with the WordPress Coding Standards set of “Sniffs”. You’ll need to have Composer To install both run the following:

$ composer create-project wp-coding-standards/wpcs:dev-master --no-dev

When prompted to remove existing VCS, answer Yes by typing Y.

Once you have installed the packages, you can check your entire theme by running:

$ npm run phpcs

If there are errors that Code Sniffer can fix automatically, run the following command to fix them:

$ npm run phpcbf


Unit Testing With Travis-CI

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

UI toolkits for rapid prototyping




Credit goes to all the brilliant designers and developers out there. Have you made a site that should be on this list? Please let me know


Here are ways to get involved:

  1. Star the project!
  2. Answer questions that come through GitHub issues
  3. Report a bug that you find
  4. Share a theme you’ve built on top of FoundationPress
  5. Tweet and blog your experience of FoundationPress.

Pull Requests

Pull requests are highly appreciated. Please follow these guidelines:

  1. Solve a problem. Features are great, but even better is cleaning-up and fixing issues in the code that you discover
  2. Make sure that your code is bug-free and does not introduce new bugs
  3. Create a pull request
  4. Verify that all the Travis-CI build checks have passed

Related Repositories



FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb ...



FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb ...



FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb ...

Top Contributors

olefredrik colin-marshall joshrathke Larzans Eccola themestechnology PixelbarEupen derweili jmbarlow Aetles AdamChlan mvillagordo olli0578 pedro-mendonca cyberscribe alexbohariuc grantnorwood EricRihlmann THEBRANDYMAN KLVTZ igarcez skoldin jgierer12 Stevie-Ray vladodriver bej-soan linuxbastard dloranc elicohenator radel


package version
dev autoprefixer ^6.1.0
babel-core ^6.5.2
babel-plugin-transform-es2015-arrow-functions ^6.3.13
babel-plugin-transform-es2015-block-scoped-functions ^6.3.13
babel-plugin-transform-es2015-block-scoping ^6.4.0
babel-plugin-transform-es2015-classes ^6.3.15
babel-plugin-transform-es2015-destructuring ^6.3.15
babel-plugin-transform-es2015-modules-commonjs ^6.3.13
babel-plugin-transform-es2015-parameters ^6.3.26
babel-plugin-transform-es2015-shorthand-properties ^6.5.0
babel-plugin-transform-es2015-spread ^6.4.0
babel-plugin-transform-es2015-template-literals ^6.3.13
babel-preset-es2015 ^6.5.0
babel-register ^6.5.2
bower ^1.8.0
browser-sync ^2.10.0
colors ^1.1.2
dateformat ^1.0.12
del ^2.2.0
gulp ^3.9.0
gulp-autoprefixer ^3.1.0
gulp-babel ^6.1.2
gulp-clean-css ^3.7.0
gulp-concat ^2.6.0
gulp-flatten ^0.2.0
gulp-if ^2.0.0
gulp-jshint ^2.0.0
gulp-load-plugins ^1.1.0
gulp-notify ^2.2.0
gulp-plumber ^1.0.1
gulp-sass ^3.1.0
gulp-sourcemaps ^2.6.0
gulp-uglify ^1.5.1
gulp-uncss ^1.0.4
gulp-util ^3.0.7
gulp-zip ^3.0.2
jshint ^2.8.0
merge-stream ^1.0.0
motion-ui ^1.1.0
run-sequence ^1.1.5
yargs ^3.31.0


-   v2.7.1 zip tar
-   v2.7.0 zip tar
-   v2.6.2 zip tar
-   v2.6.1 zip tar
-   v2.6.0 zip tar
-   v2.5.1 zip tar
-   v2.5.0 zip tar
-   v2.4.0 zip tar
-   v2.3.0 zip tar
-   v2.2.0 zip tar
-   v2.1.0 zip tar
-   v2.0.0 zip tar
-   v1.7.2 zip tar
-   v1.7.1 zip tar
-   v1.7.0 zip tar
-   v1.6.0 zip tar
-   v1.5.1 zip tar
-   v1.5.0 zip tar
-   v1.4.0 zip tar
-   v1.3.0 zip tar
-   v1.2.0 zip tar
-   v1.1.0 zip tar
-   v1.0.0 zip tar