Web applications that add unnecessary HTTP headers or meta tags and links in the HTML HEAD section of my web pages usually make me nervous. Today, WordPress, once again, made me spend my free time trying to find which filters add such useless data in my web pages and try to remove it. Removing the meta tags and links from the HTML head was rather easy using the remove_action() function, but the HTTP headers gave me a hard time. Before giving up, I decided to search for a plugin that could possibly provide a solution. Fortunately, I discovered a great plugin, named WP-Declutter, which makes it possible to remove all that useless stuff in one go. Below, there is some information about which items I have removed.
First of all, I should say that the plugin’s feature set by far exceeded my expectations as it can remove links and metatags from the HTML HEAD area, HTTP headers added by WordPress, the generator element of the feeds, and also various classes WP adds to various HTML elements.
I removed the following items from the HTML HEAD:
- Link to the Really Simple Discovery service endpoint. That’s the link to:
- Link to the first post on your blog.
- Link to the Windows Live Writer manifest file. That’s the link to:
- The generator meta tag.
- The shortlink.
From the “feeds” section I removed the the “generator” element.
Finally, from the HTTP headers section I removed everything. In my case, the ETag, Expires and Cache-Control headers are added by the webserver (FileETags and mod_expires). If this is not the case for you, then consider keeping these enabled.
Another thing you should keep in mind is that if you use any caching mechanism, like WP-Super-Cache, make sure you clear the cache after you make any changes in the WP-Clutter’s administration panel, otherwise the changes you made will be visible after the cached pages expire.
The Declutter Plugin for WordPress by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.