Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

soil

> 编程语言
Open source

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

1.0K stars0 likes1 views
WebsiteGitHub

About

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

Soil

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.

Requirements

  Prerequisite
  How to check
  How to install






  PHP &gt;= 5.6.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.

bash
composer require roots/soil

Then activate the plugin via wp-cli.

bash
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

  • Cleaner 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:

php
/**
 * 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'
]);

Module options

Soil 4 introduced support for options on some modules.

Full annotated list of features and options

…

Contributing

Contributions are welcome from everyone. We have contributing guidelines to help you get started.

Community

Keep track of development and community news.

  • Participate on the Roots Discourse
  • Follow @rootswp on Twitter
  • Read and subscribe to the Roots Blog
  • Subscribe to the Roots Newsletter
  • Listen to the Roots Radio podcast

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPwordpress-plugin

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言