Skip to content
forked from roots/soil

WordPress plugin that cleans up markup, adds relative URLs, and nice search

License

Notifications You must be signed in to change notification settings

dennyweiss/soil

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soil

Clean up WordPress markup, use relative URLs, nicer search URLs, and disable trackbacks

Installation

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

composer require roots/soil 3.0.1

Or manually add it to your composer.json:

"require": {
  "php": ">=5.3.0",
  "wordpress": "3.9.2",
  "roots/soil": "3.0.1"
}

Features

Clean-up

Enable Soil's clean-up with:

add_theme_support('soil-clean-up');
  • wp_head() clean up
  • Remove WP version from RSS feeds
  • Clean up <html> attributes
  • Clean up <link> tags
  • Clean up body_class()
  • Wrap embedded media as suggested by Readability
  • Remove unnecessary dashboard widgets
  • Remove unnecessary self-closing tags

Relative URLs

Enable Soil's root relative URLs with:

add_theme_support('soil-relative-urls');

Nice search

Enable Soil's nice search (/search/query/) with:

add_theme_support('soil-nice-search');

Disable trackbacks/pingbacks

Remove trackback/pingback functionality with:

add_theme_support('soil-disable-trackbacks');

Support

Use the Roots Discourse to ask questions and get support.

About

WordPress plugin that cleans up markup, adds relative URLs, and nice search

Resources

License

Stars

Watchers

Forks

Packages

No packages published