Coder Social home page Coder Social logo

fst's Introduction

#FST - A ZURB Foundation Starter Theme for WordPress

Version 2.2.1

FST is a simple WordPress starter theme loaded with ZURB Foundation 5.5.2.

https://github.com/SimonPadbury/fst

This theme has been built for use as a starter theme and as a learning aid for people who wish to get into WordPress theme design.

MIT licence (open source).

Note: in January 2015 this theme had a major re-build, bringing its base files in line with BST, my Bootstrap Starter Theme for WordPress. Now users of either theme will feel 'at home' in the other.


##Features of FST

  1. Simple, intuitive, clean code – CSS, JS, functions, template includes and loops are organized into different folders.
  2. ZURB Foundation 5.5.2 – CSS and JS enqueued in functions/enqueues.php.
  3. jQuery 2.1.4 enqueued – from the foundation/vendors/ folder.
  4. Normalize 3.0.3 enqueued – from the foundation folder.
  5. Foundation icon fonts includedhttp://zurb.com/playground/foundation-icon-fonts-3. These are used in various places throughout this theme.
  6. Two WordPress menu positions in the Foundation top-bar – left and right.
  7. Optional search form built into the top-bar
  8. Foundation pagination for blog index and category pages
  9. A starter CSS themecss/fst.css (Don't put your own styles in style.css.)
  10. Visual editor stylesheet – into which the same Foundation and starter CSS theme are preloaded by @import, so that what you see in the visual editor is (mostly!) what you get at the front end (WYSI(M!)WYG). E.g. you will see the theme's typography in the WordPress Post/Page editor, but its width will not be the same as your article column width in the front end.

##Customizing foundation.css

You can simply swap the default Foundation files (included) for a custom made Foundation CSS generated by the customizer (http://foundation.zurb.com/develop/download.html), and this theme will still work.

###Notes:

  1. You will still need to include the button styles and form styles in the customized foundation.css build.
  2. If in the customizer you change the humber of grid columns (from the default 12), you will need to adapt the grid layout in 404.php, category.php, index.php, page.php, single.php and ``search.php`.

##Using SCSS

You will need to:

  1. Get the latest Foundation SCSS files from http://foundation.zurb.com/docs/sass.html and place them in a scss/ folder in the root directory of this theme;
  2. Set up your pre-processor so that it outputs your CSS files in the theme's css/ folder;
  3. Then you can modify scss/foundation/_settings.css and you can create your own scss/fst.scss file. Note: be sure to copy my original content of css/fst.css into your SCSS file before your pre-processor overwrites it.

Alternatively, you may prefer to combine all into one CSS file, by putting @import "foundation/settings"; and @import "foundation"; at the top of your scss/fst.scss.

If you do this, then remember to remove the register and enqueue for "foundation.min.css" from functions/enqueues.php as it is no longer required. Also, you will then need to remove @import url("foundation.min.css"); from css/editor-style.css.


##Make this theme your own

You can easily make this theme your own by following these steps:

  1. Rename the root folder from fst/ to yourtheme/.
  2. Rename css/fst.css to css/yourtheme.css.
  3. Rename js/fst.js to js/yourtheme.js.
  4. In your code editor, do a global search-and-replace ("Replace in files...") to rename ... fst => your-themeeverywhere in the theme's code.
  5. Modify the comments in style.css.

Do all that correctly, and this WordPress theme will still work!

fst's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.