WordPress theme based on the Sage(former Roots) starter theme, using Foundation & Gulp.
PHP JavaScript CSS
Clone or download
#24 Compare This branch is 77 commits ahead, 1008 commits behind roots:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets Readme updates, added markup for search and header and foundation js … Jul 3, 2015
lang Forked Sage 8.x on separate branch Jul 1, 2015
lib Readme updates, added markup for search and header and foundation js … Jul 3, 2015
templates Readme updates, added markup for search and header and foundation js … Jul 3, 2015
.DS_Store readme updates Jul 3, 2015
.bowerrc Forked Sage 8.x on separate branch Jul 1, 2015
.editorconfig Add EditorConfig Feb 8, 2013
.gitignore updated style.css and screenshot.png Jul 1, 2015
.jscsrc Forked Sage 8.x on separate branch Jul 1, 2015
.jshintrc Forked Sage 8.x on separate branch Jul 1, 2015
.travis.yml Forked Sage 8.x on separate branch Jul 1, 2015
404.php Forked Sage 8.x on separate branch Jul 1, 2015
CHANGELOG.md Forked Sage 8.x on separate branch Jul 1, 2015
CONTRIBUTING.md Forked Sage 8.x on separate branch Jul 1, 2015
LICENSE.md Formatting, adding/updating links Nov 8, 2013
README.md Updated with instructions for the step-by-step guide Mar 14, 2016
base.php Readme updates, added markup for search and header and foundation js … Jul 3, 2015
bower.json edited bower file to use foundation, added media queries to main.scss… Jul 3, 2015
functions.php Forked Sage 8.x on separate branch Jul 1, 2015
gulpfile.js Forked Sage 8.x on separate branch Jul 1, 2015
index.php Forked Sage 8.x on separate branch Jul 1, 2015
package.json Forked Sage 8.x on separate branch Jul 1, 2015
page.php Update page.php Jun 16, 2014
ruleset.xml Forked Sage 8.x on separate branch Jul 1, 2015
screenshot.png updated image Jul 3, 2015
search.php Forked Sage 8.x on separate branch Jul 1, 2015
single.php Forked Sage 8.x on separate branch Jul 1, 2015
style.css updated style.css and screenshot.png Jul 1, 2015
template-custom.php Forked Sage 8.x on separate branch Jul 1, 2015

README.md

Instead of maintaining this repo, I'm working on a step-by-step guid for how to replace Bootstrap with Foundation here.

Gromf

Gromf

Build Status devDependency Status

Gromf is a Sage fork, a WordPress starter theme based on HTML5 Boilerplate, gulp, Bower, and Foundation Sass, that will help you make better themes.

While Sage is set up to use Bootstrap as default, Gromf uses Foundation. Everything else is more or less the same.

Gromf for Roots 7.x is still available under the 7.x branch.

Requirements

Prerequisite How to check How to install
PHP >= 5.4.x php -v php.net
Node.js 0.12.x node -v nodejs.org
gulp >= 3.8.10 gulp -v npm install -g gulp
Bower >= 1.3.12 bower -v npm install -g bower

For more installation notes, refer to the Install gulp and Bower section in this document.

Features

Install the Soil plugin to enable additional features:

  • Cleaner output of wp_head and enqueued assets
  • Cleaner HTML output of navigation menus
  • Root relative URLs
  • Nice search (/search/query/)
  • Google CDN jQuery snippet from HTML5 Boilerplate
  • Google Analytics snippet from HTML5 Boilerplate

Installation

Clone the git repo - git clone https://github.com/schikulski/gromf.git and then rename the directory to the name of your theme or website.

If you don't use Bedrock, you'll need to add the following to your wp-config.php on your development installation:

define('WP_ENV', 'development');

Configuration

Edit lib/config.php to enable or disable theme features

Edit lib/init.php to setup navigation menus, post thumbnail sizes, post formats, and sidebars.

Theme development

Sage uses gulp as its build system and Bower to manage front-end packages.

Install gulp and Bower

Building the theme requires node.js. We recommend you update to the latest version of npm: npm install -g npm@latest.

From the command line:

  1. Install gulp and Bower globally with npm install -g gulp bower
  2. Navigate to the theme directory, then run npm install
  3. Run bower install

You now have all the necessary dependencies to run the build process.

Available gulp commands

  • gulp — Compile and optimize the files in your assets directory
  • gulp watch — Compile assets when file changes are made
  • gulp --production — Compile assets for production (no source maps).

Using BrowserSync

To use BrowserSync during gulp watch you need to update devUrl at the bottom of assets/manifest.json to reflect your local development hostname.

For example, if your local development URL is http://project-name.dev you would update the file to read:

...
  "config": {
    "devUrl": "http://project-name.dev"
  }
...

If your local development URL looks like http://localhost:8888/project-name/ you would update the file to read:

...
  "config": {
    "devUrl": "http://localhost:8888/project-name/"
  }
...

Sage Documentation

Sage documentation is available at https://roots.io/sage/docs/.

Sage Community

Keep track of development and community news.

Contributing

Contributions are welcome from everyone.