PHPackages                             olefredrik/foundationpress - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. olefredrik/foundationpress

AbandonedArchivedWordpress-theme

olefredrik/foundationpress
==========================

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

v2.10.6(7y ago)2.8k1.2k826[54 issues](https://github.com/olefredrik/FoundationPress/issues)[1 PRs](https://github.com/olefredrik/FoundationPress/pulls)MITPHP

Since Aug 5Pushed 6y ago196 watchersCompare

[ Source](https://github.com/olefredrik/FoundationPress)[ Packagist](https://packagist.org/packages/olefredrik/foundationpress)[ RSS](/packages/olefredrik-foundationpress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (43)Used By (0)

DEPRECATED
==========

[](#deprecated)

This project will no longer be maintained. As Zurb Foundation is [no longer in active development ](https://github.com/foundation/foundation-sites/issues/11767), I would recommend that you base your front-end code on another framework, such as [Semantic UI](https://semantic-ui.com) or [Bootstrap](https://getbootstrap.com).

To all of you who have contributed to FoundationPress over the years: **Thank you!**

– Ole Fredrik

FoundationPress
===============

[](#foundationpress)

[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/olefredrik/foundationpress?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![GitHub version](https://camo.githubusercontent.com/7a535cdb7eec0b4bc7cdd0ec22a76b5dd78feab9c7abc6d2fe00cb70d217338c/68747470733a2f2f62616467652e667572792e696f2f67682f6f6c656672656472696b253246666f756e646174696f6e70726573732e737667)](https://github.com/olefredrik/FoundationPress/releases)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This is a starter-theme for WordPress based on Zurb's [Foundation for Sites 6](https://foundation.zurb.com/sites.html), 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!

Requirements
------------

[](#requirements)

**This project requires [Node.js](http://nodejs.org) v6.x.x 11.6.x to be installed on your machine.** Please be aware that you might encounter problems with the installation if you are using the most current Node version (bleeding edge) with all the latest features.

FoundationPress uses [Sass](http://Sass-lang.com/) (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](http://www.mingw.org/), and Mac users can install it through the [Xcode Command-line Tools](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/).

If you have not worked with a Sass-based workflow before, I would recommend reading [FoundationPress for beginners](https://foundationpress.olefredrik.com/posts/tutorials/foundationpress-for-beginners), a short blog post that explains what you need to know.

Quickstart
----------

[](#quickstart)

### 1. Clone the repository and install with npm

[](#1-clone-the-repository-and-install-with-npm)

```
$ cd my-wordpress-folder/wp-content/themes/
$ git clone https://github.com/olefredrik/FoundationPress.git
$ cd FoundationPress
$ npm install
```

### 2. Configuration

[](#2-configuration)

#### YAML config file

[](#yaml-config-file)

FoundationPress includes a `config-default.yml` file. To make changes to the configuration, make a copy of `config-default.yml` and name it `config.yml` and make changes to that file. The `config.yml` file is ignored by git so that each environment can use a different configuration with the same git repo.

At the start of the build process a check is done to see if a `config.yml` file exists. If `config.yml` exists, the configuration will be loaded from `config.yml`. If `config.yml` does not exist, `config-default.yml` will be used as a fallback.

#### Browsersync setup

[](#browsersync-setup)

If you want to take advantage of [Browsersync](https://www.browsersync.io/) (automatic browser refresh when a file is saved), simply open your `config.yml` file after creating it in the previous step, and put your local dev-server address and port (e.g ) in the `url` property under the `BROWSERSYNC` object.

#### Static asset hashing / cache breaker

[](#static-asset-hashing--cache-breaker)

If you want to make sure your users see the latest changes after re-deploying your theme, you can enable static asset hashing. In your `config.yml`, set `REVISIONING: true;`. Hashing will work on the `npm run build` and `npm run dev` commands. It will not be applied on the start command with browsersync. This is by design. Hashing will only change if there are actual changes in the files.

### 3. Get started

[](#3-get-started)

```
$ npm start
```

### 4. Compile assets for production

[](#4-compile-assets-for-production)

When building for production, the CSS and JS will be minified. To minify the assets in your `/dist` folder, run

```
$ npm run build
```

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

[](#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`, `/src`, etc. to keep the theme lightweight for transferring the theme to a staging or production server.

### Project structure

[](#project-structure)

In the `/src` folder you will find the working files for all your assets. Every time you make a change to a file that is watched by Gulp, the output will be saved to the `/dist` folder. The contents of this folder is the compiled code that you should not touch (unless you have a good reason for it).

The `/page-templates` folder contains templates that can be selected in the Pages section of the WordPress admin panel. To create a new page-template, simply create a new file in this folder and make sure to give it a template name.

I guess the rest is quite self explanatory. Feel free to ask if you feel stuck.

### Styles and Sass Compilation

[](#styles-and-sass-compilation)

- `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
- `src/assets/scss/app.scss`: Make imports for all your styles here
- `src/assets/scss/global/*.scss`: Global settings
- `src/assets/scss/components/*.scss`: Buttons etc.
- `src/assets/scss/modules/*.scss`: Topbar, footer etc.
- `src/assets/scss/templates/*.scss`: Page template styling
- `dist/assets/css/app.css`: This file is loaded in the `` section of your document, and contains the compiled styles for your project.

If you're new to Sass, please note that you need to have Gulp running in the background (`npm start`), for any changes in your scss files to be compiled to `app.css`.

### JavaScript Compilation

[](#javascript-compilation)

All JavaScript files, including Foundation's modules, are imported through the `src/assets/js/app.js` file. The files are imported using module dependency with [webpack](https://webpack.js.org/) as the module bundler.

If you're unfamiliar with modules and module bundling, check out [this resource for node style require/exports](http://openmymind.net/2012/2/3/Node-Require-and-Exports/) and [this resource to understand ES6 modules](http://exploringjs.com/es6/ch_modules.html).

Foundation modules are loaded in the `src/assets/js/app.js` file. By default all components are loaded. You can also pick and choose which modules to include. Just follow the instructions in the file.

If you need to output additional JavaScript files separate from `app.js`, do the following:

- Create new `custom.js` file in `src/assets/js/`. If you will be using jQuery, add `import $ from 'jquery';` at the top of the file.
- In `config.yml`, add `src/assets/js/custom.js` to `PATHS.entries`.
- Build (`npm start`)
- You will now have a `custom.js` file outputted to the `dist/assets/js/` directory.

Demo
----

[](#demo)

- [Clean FoundationPress install](http://foundationpress.olefredrik.com/)
- [FoundationPress Kitchen Sink - see every single element in action](http://foundationpress.olefredrik.com/kitchen-sink/)

Local Development
-----------------

[](#local-development)

We recommend using one of the following setups for local WordPress development:

- [MAMP](https://www.mamp.info/en/) (macOS)
- [WAMP](http://www.wampserver.com/en/download-wampserver-64bits/) (Windows)
- [LAMP](https://www.linux.com/learn/easy-lamp-server-installation) (Linux)
- [Local](https://local.getflywheel.com/) (macOS/Windows)
- [VVV (Varying Vagrant Vagrants)](https://github.com/Varying-Vagrant-Vagrants/VVV) (Vagrant Box)
- [Trellis](https://roots.io/trellis/)

Tutorials
---------

[](#tutorials)

- [FoundationPress for beginners](https://foundationpress.olefredrik.com/posts/tutorials/foundationpress-for-beginners/)
- [Responsive images in WordPress with Interchange](http://rachievee.com/responsive-images-in-wordpress/)
- [Learn to use the \_settings file to change almost every aspect of a Foundation site](http://zurb.com/university/lessons/66)
- [Other lessons from Zurb University](http://zurb.com/university/past-lessons)

Documentation
-------------

[](#documentation)

- [Zurb Foundation Docs](http://foundation.zurb.com/docs/)
- [WordPress Codex](http://codex.wordpress.org/)

Showcase
--------

[](#showcase)

- [Harvard Center for Green Buildings and Cities](http://www.harvardcgbc.org/)
- [The New Tropic](http://thenewtropic.com/)
- [Parent-Child Home Program](http://www.parent-child.org/)
- [Hip and Healthy](http://hipandhealthy.com/)
- [Franchise Career Advisors](http://franchisecareeradvisors.com/)
- [Maren Schmidt](http://marenschmidt.com/)
- [Finnerodja](http://www.finnerodja.se/)
- [WP Diamonds](http://www.wpdiamonds.com/)
- [Storm Arts](http://stormarts.fi/)
- [ProfitGym](http://profitgym.nl/)
- [Agritur Piasina](http://www.agriturpiasina.it/)
- [Byington Vineyard &amp; Winery](https://byington.com/)
- [Show And Tell](http://www.showandtelluk.com/)
- [Wahl + Case](https://www.wahlandcase.com/)
- [Morgridge Institute for Research](https://morgridge.org)
- [Impeach Trump Now](https://impeachdonaldtrumpnow.org/)
- [La revanche des sites](https://www.la-revanche-des-sites.fr/)
- [Dyami Wilson](https://dyamiwilson.com)
- [Madico Solutions](https://madico.com)

> 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](https://twitter.com/olefredrik)

Contributing
------------

[](#contributing)

#### Here are ways to get involved:

[](#here-are-ways-to-get-involved)

1. [Star](https://github.com/olefredrik/FoundationPress/stargazers) the project!
2. Answer questions that come through [GitHub issues](https://github.com/olefredrik/FoundationPress/issues)
3. Report a bug that you find
4. Share a theme you've built on top of FoundationPress
5. [Tweet](https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ffoundationpress.olefredrik.com%2F&text=Check%20out%20FoundationPress%2C%20the%20ultimate%20%23WordPress%20starter-theme%20built%20on%20%23Foundation%206&tw_p=tweetbutton&url=http%3A%2F%2Ffoundationpress.olefredrik.com&via=olefredrik) and [blog](http://www.justinfriebel.com/my-first-experience-with-foundationpress-a-wordpress-starter-theme-106/) your experience of FoundationPress.

#### Pull Requests

[](#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](https://help.github.com/articles/creating-a-pull-request)
4. Verify that all the Travis-CI build checks have passed

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~148 days

Total

36

Last Release

2593d ago

Major Versions

v1.7.2 → v2.0.02015-12-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc133b79c5ddef5218f4c249293a2b06d5b6bb07fbcb0e443931ef1b763588ac?d=identicon)[olefredrik](/maintainers/olefredrik)

---

Top Contributors

[![olefredrik](https://avatars.githubusercontent.com/u/1080017?v=4)](https://github.com/olefredrik "olefredrik (919 commits)")[![colin-marshall](https://avatars.githubusercontent.com/u/4453733?v=4)](https://github.com/colin-marshall "colin-marshall (101 commits)")[![derweili](https://avatars.githubusercontent.com/u/6911678?v=4)](https://github.com/derweili "derweili (55 commits)")[![EricRihlmann](https://avatars.githubusercontent.com/u/3229380?v=4)](https://github.com/EricRihlmann "EricRihlmann (37 commits)")[![JPOak](https://avatars.githubusercontent.com/u/12259408?v=4)](https://github.com/JPOak "JPOak (20 commits)")[![Larzans](https://avatars.githubusercontent.com/u/2615234?v=4)](https://github.com/Larzans "Larzans (18 commits)")[![Aetles](https://avatars.githubusercontent.com/u/429202?v=4)](https://github.com/Aetles "Aetles (13 commits)")[![themestechnology](https://avatars.githubusercontent.com/u/10156074?v=4)](https://github.com/themestechnology "themestechnology (10 commits)")[![emaia](https://avatars.githubusercontent.com/u/131877?v=4)](https://github.com/emaia "emaia (10 commits)")[![PixelbarEupen](https://avatars.githubusercontent.com/u/7248172?v=4)](https://github.com/PixelbarEupen "PixelbarEupen (9 commits)")[![alexbohariuc](https://avatars.githubusercontent.com/u/2670791?v=4)](https://github.com/alexbohariuc "alexbohariuc (9 commits)")[![conorbarclay](https://avatars.githubusercontent.com/u/12818737?v=4)](https://github.com/conorbarclay "conorbarclay (7 commits)")[![AdamChlan](https://avatars.githubusercontent.com/u/757209?v=4)](https://github.com/AdamChlan "AdamChlan (6 commits)")[![linuxbastard](https://avatars.githubusercontent.com/u/1945495?v=4)](https://github.com/linuxbastard "linuxbastard (6 commits)")[![mnuhell](https://avatars.githubusercontent.com/u/558183?v=4)](https://github.com/mnuhell "mnuhell (6 commits)")[![pedro-mendonca](https://avatars.githubusercontent.com/u/7371591?v=4)](https://github.com/pedro-mendonca "pedro-mendonca (5 commits)")[![manwithacat](https://avatars.githubusercontent.com/u/332269?v=4)](https://github.com/manwithacat "manwithacat (5 commits)")[![grantnorwood](https://avatars.githubusercontent.com/u/707463?v=4)](https://github.com/grantnorwood "grantnorwood (5 commits)")[![cyberscribe](https://avatars.githubusercontent.com/u/693733?v=4)](https://github.com/cyberscribe "cyberscribe (5 commits)")[![THEBRANDYMAN](https://avatars.githubusercontent.com/u/6468741?v=4)](https://github.com/THEBRANDYMAN "THEBRANDYMAN (4 commits)")

---

Tags

foundationfoundationpresssassstarter-themethemewordpresszurb

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/olefredrik-foundationpress/health.svg)

```
[![Health](https://phpackages.com/badges/olefredrik-foundationpress/health.svg)](https://phpackages.com/packages/olefredrik-foundationpress)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
