Declutter WordPress

Description

This plugin lets you remove some of the default headers, tags and classes that WordPress inserts into your template by default. I personally find that some of them are unnecessary and just waste bandwidth.

The plugin currently lets you configure the following:

  • In the head of HTML and XML documents
    • Feed links (blog and comment feeds)
    • Extra feed links (category, tag, author, search feeds)
    • Really Simple Discovery and Windows Live Manifest endpoint links
    • Links to previous/next posts
    • Generator tag which reveals which version of WordPress you are using
    • Shortlink tag
    • oEmbed links
    • REST API endpoint link
  • In HTTP response headers:
    • Shortlink header
    • Redundant Etag headers
    • X-Pingback header
  • Remove HTML body classes that you do not need (there is a huge list of classes that WordPress automatically inserts into the body tag)
  • Remove post classes that you do not need (e.g., type-, category-, tag-)
  • Remove comment classes that you do not need (e.g., odd, even, alt, byuser, bypostauthor, depth-N)
  • Remove menu item classes that you do not need (e.g., menu-item, current-menu-item, current_page_ancestor)

If you come across any bugs or have suggestions, please use the support forums. I can’t fix it if I don’t know it’s broken!

Reviews

Read all 3 reviews

Changelog

1.8

  • Add option to remove REST API and oEmbed links from the HTML head.

1.7

  • Add option to remove Emoji CSS and JS.

1.6.3

  • Bugfix: current-menu-ancestor and current-menu-parent were being wrongly hidden by another filter.

1.6.2

  • Add CSRF validation to settings page.

1.6.1

  • Remove options for start/parent/index rel links – these were dropped from WordPress.
  • Minor usability improvements.

1.6

  • Added the option to remove ID attributes from Menu items

1.5

  • Added menu item class filtering

1.4

  • Added version-specific filters for WordPress 3.1
  • Modified upgrade routine to account for changes in upgrade procedure in WordPress 3.1
  • Performance improvements for class filtering

1.3

  • Added new class filters for classes introduced in WordPress 3.1 beta/RC

1.2

  • Added the option to completely disable body, post and comment classes.
  • Added new class filters for classes introduced in WordPress 3.1 alpha

1.1

  • Added filtering for classes in the tag
  • Note: some previous options may be reset after upgrade, because of some changes to how the plugin works – so please go to the settings page to check them.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code