Giter Site home page Giter Site logo

flask's Introduction

Flask WordPress Theme Framework

A slightly opinionated SASS + Bourbon based starter theme for WordPress created by Kyle Larkin and Alex Stockwell. Based on the KL[AS] Framework.

Under the hood Flask uses Guard, Sprockets and LiveReload to make theme development easy. No external application (Codekit) required.

Installation

  1. Copy the repository to your /wp-content/themes folder
  2. Move the following files out of the theme folder and into the wordpress root directory:
    • .bowerrc
    • .gitignore
    • .htaccess
    • bower.json
    • Gemfile
    • Guardfile
    • wp-config.php
  3. Rename the theme folder, and update paths in the following locations:
    • /Guardfile line 4
    • /wp-config.php line 85
    • /wp-content/themes/your-theme/sass/framework/_flask.scss line 14
  4. Update /wp-config.php as usual (add db credentials, salts, and staging tld)
  5. Run bundle install from your wordpress root directory to install requisite gems
  6. Run bower install from your wordpress root directory to install requisite packages into /vendor
  7. Run bourbon install --path vendor from your wordpress root directory to install bourbon into /vendor
  8. Run cd vendor; neat install; cd ../ from your wordpress root directory to install neat into /vendor (neat 2.0 will eliminate this craziness)
  9. Run guard from your wordpress root directory to begin watching your files

Note for Shared Hosting: The line Options All -Indexes in .htaccess may cause 4xx/5xx errors site-wide on some shared servers. Please remove this line if necessary.

Usage

  1. The wp-config.php file is intended for use with the following 3 project lifecycle environments, with the following naming conventions:
  • Development: [optional.]example.dev. Regex will detect this for you automagically.
  • Staging: any URL structure you'd like, e.g. preview.example.com. You must define this in the /wp-config.php file on line 23.
  • Production: any URL, e.g. example.com. This is the default and the file will fallback to these credentials if the Development/Staging conditions aren't met.

Taking inspiration from:

flask's People

Contributors

astockwell avatar astockwell-ps avatar kylelarkin avatar

Stargazers

 avatar Joseph Bergdoll avatar

Watchers

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