A repository for the Foundation 5 Starter theme based on Underscores _s
PHP CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
inc
parts
templates
.bowerrc
.gitignore
.travis.yml
404.php
Gruntfile.js
README.md
archive.php
author.php
bower.json
category.php
codesniffer.ruleset.xml
comments.php
footer.php
functions.php
header.php
humans.txt
index.php
package.json
page.php
readme.txt
robots.txt
screenshot.png
search.php
searchform.php
sidebar-page.php
sidebar.php
single.php
style.css
tag.php

README.md

Travis Build Status

"Flair" is Sennza's WordPress Foundation 5.5.3 + _s Starter theme

Prerequisites

This setup works well with Chassis.

Requirements

You'll need to have the following items installed before continuing.

  • Node.js: Use the installer provided on the NodeJS website.
  • Grunt: Run [sudo] npm install -g grunt-cli
  • Bower: Run [sudo] npm install -g bower

Quickstart

git clone git@github.com:sennza/Flair.git yourtheme
npm install && bower install
grunt setup

While you're working on your project, run:

grunt

And you're set!

Directory Structure

  • assets/: Any media (SCSS, JS, Images) should be contained in this folder.
  • assets/scss/_settings.scss: Foundation configuration settings go in here
  • assets/scss/app.scss: Application styles go here
  • parts: All get_template_parts are stored in here
  • templates: All Page Templates are stored in here
  • inc: Any complex filters and actions should go in here to reduce the bloat of functions.php. Note: Any files in the root will be automagically included in your theme.

Foundation Support

In functions.php there are some commented out add_theme_support lines which when uncommented will add theme suppport for Foundations:

Package as Zip

If you'd like to package your theme for installing from the WordPress Administration Panel run:

grunt build

The grunt task creates a file named flair-theme.zip in the releases folder root of the theme directory. Your theme files will be inside a version numbered folder. You can alter the version number and the name of the zip by altering the name and version in package.json