WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications
WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications
A WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications.
[!CAUTION] This plugin is no longer maintained. Use Acorn Prettify instead.
Prerequisite
How to check
How to install
PHP >= 5.6.x
php -v
php.netYou can install this plugin via the command-line or the WordPress admin panel.
If you're using Composer to manage WordPress, add Soil to your project's dependencies.
composer require roots/soilThen activate the plugin via wp-cli.
wp plugin activate soilCleaner WordPress markup
add_theme_support('soil', 'clean-up');
Disable REST API
add_theme_support('soil', 'disable-rest-api');
Disable asset versioning
add_theme_support('soil', 'disable-asset-versioning');
Disable trackbacks
add_theme_support('soil', 'disable-trackbacks');
Google Analytics
add_theme_support('soil', ['google-analytics' => 'UA-XXXXX-Y']);
Move all JS to the footer
add_theme_support('soil', 'js-to-footer');
Cleaner walker for navigation menus
add_theme_support('soil', 'nav-walker');
Convert search results from /?s=query to /search/query/
add_theme_support('soil', 'nice-search');
Root relative URLs
add_theme_support('soil', 'relative-urls');
And in a format you can copy & paste into your theme:
/**
* Enable features from Soil when plugin is activated
* @link https://roots.io/plugins/soil/
*/
add_theme_support('soil', [
'clean-up',
'disable-rest-api',
'disable-asset-versioning',
'disable-trackbacks',
'google-analytics' => 'UA-XXXXX-Y',
'js-to-footer',
'nav-walker',
'nice-search',
'relative-urls'
]);Soil 4 introduced support for options on some modules.
Full annotated list of features and options
…Contributions are welcome from everyone. We have contributing guidelines to help you get started.
Keep track of development and community news.
No open issues yet, or sync has not completed.