Genesis-Starter-Child-Theme

WordPress Genesis Framework入门子主题,用于构建自定义子主题。 (WordPress Genesis Framework starter Child Theme for building custom child themes. )

  • Owner: mattbanks/Genesis-Starter-Child-Theme
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

WordPress Genesis Starter Child Theme

Version: 3.0.0

Author:

Matt Banks ( @mattbanks / collectivthkg.com / mattbanks.me )

Summary

WordPress Starter Theme for use as Child Theme of the Genesis Framework for building custom themes. Uses SCSS, AutoPrefixr and Grunt for all processing tasks. Syncs changes across local development devices with BrowserSync. Tested up to WordPress 4.0 RC1 and Genesis 2.1.2.

Usage

The theme is setup to use Grunt to compile SCSS (with source maps), run it through AutoPrefixr, lint, concatenate and minify JavaScript (with source maps), optimize images, and syncs changes across local development devices with BrowserSync, with flexibility to add any additional tasks via the Gruntfile. Alternatively, you can use CodeKit or whatever else you prefer to compile the SCSS and manage the JavaScript.

Rename folder to your theme name, change the style.scss intro block to your theme information. Open the theme directory in terminal and run npm install to pull in all Grunt dependencies. Run grunt to execute tasks. Code as you will.

If you are using MAMP or Vagrant, change the proxy option in the grunt browserSync task to match your vhost URL.

  • Compile assets/styles/style.scss to style.css
  • Compile assets/styles/editor-style.scss to editor-style.css
  • Concatenate and minify plugins in assets/js/vendor and assets/js/source/plugins.js to assets/js/plugins.min.js
  • Minify and lint assets/js/source/main.js to assets/js/main.min.js
  • ??
  • Profit

To concatenate and minify your jQuery plugins, add them to the assets/js/vendor directory and add the js filename and path to the Gruntfile uglify task. Previous versions of the starter theme automatically pulled all plugins in the vendor directory, but this has changed to allow more granular control and for managing plugins and assets with bower.

Bower

Supports bower to install and manage JavaScript dependencies in the assets/js/vendor folder.

Deployment

The theme includes deployments via grunt-rsync. The Gruntfile includes setups for staging and production - edit your paths and host, then run grunt rsync:staging or grunt rsync:production to deploy your files via rsync.

Features

  1. SCSS with AutoPrefixr and easy-to-use of mixins ready to go
  2. Easy to customize
  3. Grunt and BrowserSync to make it more gooder
  4. Child theme tweaks
  5. More to come!

Suggested Plugins

dependencies

Contributing:

Anyone and everyone is welcome to contribute! Check out the Contributing Guidelines.

Credits

Without these projects, this WordPress Genesis Starter Child Theme wouldn't be where it is today.

Main metrics

Overview
Name With Ownermattbanks/Genesis-Starter-Child-Theme
Primary LanguagePHP
Program languageJavaScript (Language Count: 3)
Platform
License:
所有者活动
Created At2013-01-21 18:33:13
Pushed At2015-07-09 12:20:41
Last Commit At2015-07-09 08:20:41
Release Count23
Last Release Namev3.0.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count182
Watchers Count33
Fork Count59
Commits Count142
Has Issues Enabled
Issues Count15
Issue Open Count1
Pull Requests Count4
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private