Git Product home page Git Product logo

foundationwp's Introduction

Foundation 5 WordPress Theme

A WordPresss theme for protoyping sites using ZURB's awesome Foundation 5 front-end framework. This is basically what it would look like to install Foundation into a WordPress theme directory using the command line.

If you are looking for a full-fledged Foundation theme for WordPress, check out FoundationPress. This theme is ideal more for protoyping site layouts like wireframes than creating robust websites.

Requirements

Foundation requires the following:

Installation

To create a new project:

cd path/to/your/project
git clone [email protected]:geoffgraham/FoundationWP.git
mv FoundationWP your-project-directory

This repository includes a full WordPress installation in addition to the theme files. Update wp-config.php and complete the WordPress installation like you would for any other WordPress site.

If you just want the theme files, then it might be easier to download the full repository ZIP file, extract the theme from wp-content/themes/FoundationWP and drop it into your project.

Learn more about WordPress installation: WordPress Codex

Foundation Updates

Want to update your project to the latest version of Foundation?

Run foundation update in the command line.

File Structure

This theme is designed to mirror a clean Foundation installation into a WordPress theme directory.

Stylesheets

Foundation includes two folders for styles: one for SCSS (scss/) and one for CSS (stylesheets/). I prefer to lump all my asset folders into a single "lib" directory, but that would have made future Foundation updates troublesome.

If you are writing your styles in Sass, then use the SCSS folder to hold your partials and compile them into app.scss, which will output to app.css in the CSS folder.

If you prefer vanilla CSS, then I recommend writing them in the theme's style.css file where noted to add to or override existing theme styles. Otherwise, you can create a new CSS file and enqeue it in lib/functions/enqueue_styles.php.

Javascript

Foundation's Javascript files are located in bower_components/. They are initialized by app.js which is located in 'js/'.

All Javascript for the theme is enqueued by WordPress in lib/functions/enqueue-scripts.php. You can add your own scripts to js/ and enqueue them the same way. This is the method recommended by WordPress.

Library

I prefer using a directory that is dedicated for all my development assets, so I added lib/ for you to do just that. This is where all the theme functions are kept and imported by functions.php but you can also use this directory to creates more directories for other assets, such as fonts, images, etc.

Learn More About WordPress

WordPress Codex

Learn More About Foundation

Foundation Docs

foundationwp's People

Contributors

geoffgraham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.