/soil

A WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications

Primary LanguagePHPMIT LicenseMIT

Soil

Build Status

A WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications.

Requirements

Prerequisite How to check How to install
PHP >= 5.4.x php -v php.net

Installation

You can install this plugin via the command-line or the WordPress admin panel.

via Command-line

If you're using Composer to manage WordPress, add Soil to your project's dependencies.

composer require roots/soil 3.5.0

Then activate the plugin via wp-cli.

wp plugin activate soil

via WordPress Admin Panel

  1. Download the latest zip of this repo.
  2. In your WordPress admin panel, navigate to Plugins->Add New
  3. Click Upload Plugin
  4. Upload the zip file that you downloaded.

Modules

  • Load jQuery from the Google CDN
    add_theme_support('soil-jquery-cdn');

  • Cleaner WordPress markup
    add_theme_support('soil-clean-up');

  • Cleaner walker for navigation menus
    add_theme_support('soil-nav-walker');

  • Root relative URLs
    add_theme_support('soil-relative-urls');

  • Google Analytics (more info)
    add_theme_support('soil-google-analytics', 'UA-XXXXX-Y');

  • Move all JS to the footer
    add_theme_support('soil-js-to-footer');

  • Disable trackbacks
    add_theme_support('soil-disable-trackbacks');

  • Disable asset versioning
    add_theme_support('soil-disable-asset-versioning');

Support

Use the Roots Discourse to ask questions and get support.