2017 © Pedro Peláez
 

wordpress-theme foundationpress

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

image

olefredrik/foundationpress

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

  • Thursday, July 26, 2018
  • by olefredrik
  • Repository
  • 219 Watchers
  • 2660 Stars
  • 1,104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 938 Forks
  • 42 Open issues
  • 49 Versions
  • 1 % Grown

The README.md

DEPRECATED

This project will no longer be maintained. As Zurb Foundation is no longer in active development , I would recommend that you base your front-end code on another framework, such as Semantic UI or Bootstrap., (*1)

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

– Ole Fredrik, (*3)

FoundationPress

Gitter GitHub version License: MIT, (*4)

This is a starter-theme for WordPress based on Zurb's Foundation for Sites 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., (*5)

Please fork, copy, modify, delete, share or do whatever you like with this., (*6)

All contributions are welcome!, (*7)

Requirements

This project requires Node.js 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., (*8)

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

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., (*10)

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., (*11)

Quickstart

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

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., (*12)

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., (*13)

Browsersync setup

If you want to take advantage of Browsersync (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 http://localhost:8888) in the url property under the BROWSERSYNC object., (*14)

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., (*15)

3. Get started

$ npm start

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, (*16)

$ npm run build

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., (*17)

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)., (*18)

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., (*19)

I guess the rest is quite self explanatory. Feel free to ask if you feel stuck., (*20)

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, (*21)

  • src/assets/scss/app.scss: Make imports for all your styles here, (*22)

  • 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, (*23)

  • dist/assets/css/app.css: This file is loaded in the <head> section of your document, and contains the compiled styles for your project., (*24)

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., (*25)

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 as the module bundler., (*26)

If you're unfamiliar with modules and module bundling, check out this resource for node style require/exports and this resource to understand ES6 modules., (*27)

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., (*28)

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., (*29)

Demo

Local Development

We recommend using one of the following setups for local WordPress development:, (*30)

Tutorials

Documentation

Showcase

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, (*31)

Contributing

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:, (*32)

  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

The Versions

26/07 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

16/03 2018

dev-fix/package-build-win

dev-fix/package-build-win

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

20/11 2017

dev-bugfix/layout

dev-bugfix/layout

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

11/10 2017

v2.10.4

2.10.4.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

06/09 2017

dev-comment-text-domain

dev-comment-text-domain

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

06/09 2017

dev-update-editor-styles

dev-update-editor-styles

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

29/08 2017

v2.10.3

2.10.3.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

28/08 2017

dev-update-kitchen-sink-grid

dev-update-kitchen-sink-grid

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

23/08 2017

dev-target-spesific-foundation-version

dev-target-spesific-foundation-version

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

08/08 2017

v2.10.2

2.10.2.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

08/08 2017

dev-active-class-menu-item

dev-active-class-menu-item

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

08/08 2017

dev-disable-float-grid-by-default

dev-disable-float-grid-by-default

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

05/08 2017

v2.10.1

2.10.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

05/08 2017

v2.10.0

2.10.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

28/07 2017

v2.9.3

2.9.3.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

31/03 2017

dev-update-font-awesome

dev-update-font-awesome

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

17/03 2017

v2.9.2

2.9.2.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

16/03 2017

v2.9.1

2.9.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

16/03 2017

dev-updateTravisBuildChecks

dev-updateTravisBuildChecks

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

16/03 2017

dev-responsive-accordion-tabs

dev-responsive-accordion-tabs

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

15/12 2016

v2.9.0

2.9.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

15/12 2016

dev-foundation-v6.3.0

dev-foundation-v6.3.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

21/10 2016

v2.8.0

2.8.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

07/09 2016

v2.7.1

2.7.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

04/09 2016

v2.7.0

2.7.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

28/07 2016

dev-zip-package-readme

dev-zip-package-readme

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

09/06 2016

v2.6.2

2.6.2.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

10/03 2016

v2.6.1

2.6.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

10/03 2016

v2.6.0

2.6.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

08/03 2016

v2.5.1

2.5.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

02/03 2016

v2.5.0

2.5.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

11/02 2016

v2.4.0

2.4.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

31/12 2015

v2.3.0

2.3.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

21/12 2015

dev-development

dev-development

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

12/12 2015

v2.2.0

2.2.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

07/12 2015

v2.1.0

2.1.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

05/12 2015

v2.0.0

2.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

04/12 2015

dev-foundation-5

dev-foundation-5

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

20/11 2015

v1.7.2

1.7.2.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

20/11 2015

v1.7.1

1.7.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

07/11 2015

v1.7.0

1.7.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

01/11 2015

v1.6.0

1.6.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

10/10 2015

v1.5.1

1.5.1.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

23/09 2015

v1.5.0

1.5.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

07/09 2015

v1.4.0

1.4.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

03/09 2015

v1.3.0

1.3.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

27/08 2015

v1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

17/08 2015

v1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie

05/08 2015

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Ole Fredrik Lie