GithubHelp home page GithubHelp logo

hyyan / brunch-wordpress-theme Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 1.0 102 KB

WordPress Starter Theme That Uses Brunch, Bower, And Bootstrap

JavaScript 0.10% CSS 44.92% CoffeeScript 2.14% Ruby 1.39% PHP 46.83% HTML 4.62%
brunch wordpress-theme brunch-wordpress-theme theme bower php

brunch-wordpress-theme's Introduction

Brunch Wordpress Theme

project status dependency Status MIT licensed

Brunch Wordpress Theme is a WordPress starter theme based on HTML5 Boilerplate, brunch, Bower, and Bootstrap Sass, that will help you make better themes.

Requirements

Prerequisite How to check How to install
PHP >= 5.3.x php -v php.net
Node.js >= 0.10.25 node -v nodejs.org
Brunch >= 1.8.2 brunch -v npm install -g brunch
Bower >= 1.3.12 bower -v npm install -g bower

Features

  • Brunch build script that compiles both Sass and Less, checks for JavaScript errors, optimizes images, and concatenates and minifies files
  • Bower for front-end package management
  • Sass Bootstrap
  • TGM-Plugin-Activation PHP library that allows you to easily require or recommend plugins for your WordPress themes
  • WP Bootstrap Navwalker A custom WordPress nav walker class to fully implement the Twitter Bootstrap 3.0+ navigation style

Installation

  1. Clone the git repo : git clone https://github.com/hyyan/brunch-wordpress-theme.git and then rename the directory to the name of your theme or website.

Configuration

  1. If you want to use compass set the http_path in config.rb to meet your theme relative path wp-content/themes/my-theme-name/

  2. if you want libsass instead of ruby to compile sass change to this in your brunch-config.coffe file:

config =
  plugins:
    sass:
      mode: 'native' # set to 'native' to force libsass

Theme Main Folders

  1. The app folder will contains assets files (images,sass,js , ...)
  2. The inc folder contains the logic of your theme (functions,template-tags,configurations , ...)
  3. The vendor folder contains assets files which can not be handled by Bower
  4. The rest files is just orgainzed as any wordpress standard theme

Note : The theme is using brunch-with-hyyan sekelton , you can read more about to take a deeper look

Theme development

Brunch Wordpress Theme uses Brunch as its build system and Bower to manage front-end packages.

1 - Install Brunch and Bower

Building the theme requires node.js.

From the command line:

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

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

2 - Available Brunch commands

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

Documentaions

Contributing

Everyone is welcome to help contribute and improve this project. There are several ways you can contribute:

  • Reporting issues (please read issue guidelines)
  • Suggesting new features
  • Writing or refactoring code
  • Fixing issues

brunch-wordpress-theme's People

Contributors

hyyan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

frankdarnese

brunch-wordpress-theme's Issues

Doesn't work on a live server

I used this to create a local version of my site using MAMP and everything worked well. I cannot, however, migrate the files and database online without "white screen of death" from WordPress, even after updating wp-config.php and the database to work correctly (I have done this many times with other WordPress sites with custom themes). The only way I can remedy it is to change the name of my theme's folder. Basically, this doesn't create a legal WordPress theme. Is there a technique to fix this?

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.