WordPress Theme for Urban Community Gardens Network of Madrid
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 24 commits ahead, 3 commits behind montera34:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
languages
lib
templates
.bowerrc
.gitignore
.jshintrc
404.php
Gruntfile.js
LICENSE.md
README.md
archive.php
comments.php
content-carousel.php
content-map.php
content-new.php
content-none.php
content-page.php
content-search.php
content-single-new.php
content-single.php
content.php
editor-style.css
fonts.css
footer.php
front-page.php
functions.php
header.php
index.php
npm-debug.log
package.json
page.php
screenshot.png
search.php
sidebar.php
single.php
style.css

README.md

WordPress Theme for Urban Community Gardens Network of Madrid

You can see this theme in action here: http://huertos.madrid.es

Version 0.1.

This theme is based on WordPress Starter Theme v4.2.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
  • Create sprites by adding PNGs to assets/images/sprites and use by referencing created classes in assets/styles/partials/_spritesheet.scss

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 deploy:staging or grunt deploy:production to deploy your files via rsync.

Plugins

Needed plugins

Suggested Plugins

dependencies

Credits

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