Clean up wp_head

Description

Have you ever wondered what all those tags in the head of your team are for? Most of us don’t have any use for them and can safely remove them.

<link rel="alternate" type="application/rss+xml" title="Site title | Feed" href="http://example.com/?feed=rss2" />
<link rel="alternate" type="application/rss+xml" title="Site title | Comments Feed" href="http://example.com/?feed=comments-rss2" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://example.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://example.com/wp-includes/wlwmanifest.xml" />
<link rel='index' title='Site title' href='http://example.com/' />
<link rel='start' title='Blog post title' href='http://example.com/blog-post-title/' />
<link rel='prev' title='Previous blog post title' href='http://example.com/previous-blog-post-title/' />
<meta name="generator" content="WordPress 3.0.1" />

With Clean up wp_head you can remove all those tags easy directly from WordPress admin just by checking a few boxes.

WordPress Clean up wp_head

WordPress Clean up wp_head

For those of you that don’t want a plugin for doing this, there is a text file with the code snippets that you can put in your themes functions.php instead.

Download

Go to Clean up wp_head on WordPress.org to read more about the plugin or download Clean up wp_head directly.

20 Responses to Clean up wp_head

  1. Pingback: Clean up wp_head from unused tags | Fredrik Malmgren

  2. Pingback: Summering av september 2010 | Fredrik Malmgren

  3. but how do I know if I have use for them or not? and which I can remove and which I should keep?

    • Fredrik says:

      Hi Magnus,

      I would say that all of these codes fill a function except WordPress Generator which only displays the installed version of WordPress.

      RDS is necessary if you use any XML-RPC client and wlwmanifest is use by Windows Live writer. So if you are using any of those services you must keep them.

      The last three is navigational links used by some browsers and other readers. In some cases they are used to increase the accessibility of the site.

  4. Matt Cooper says:

    Hi

    I’ve been searching around for something similar to this plugin for a while, have you thought about adding the option to disable the RSS links too? It should be a fairly simple step but would make the plugin really useful for people using WP and a CMS.

    The key actions to remove would be:

    remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); // Display the links to the extra feeds such as category feeds
    remove_action( ‘wp_head’, ‘feed_links’, 2 ); // Display the links to the general feeds: Post and Comment Feed

    i found this here: http://wordpress.org/support/topic/remove-feed-from-wp_head

    thanks

  5. Pingback: New version of Clean up wp_head | Fredrik Malmgren

  6. krillo says:

    Hi Fredrik,

    I don’t think that we will ever use your plug, but it is allways nice to see when people make an effort creating a useful plug.

    Good work – Krillo

  7. Pingback: Wordpress-Header erleichtern « ryanBlog

  8. Kurt says:

    Great plugin! While other suggestions on how to disable feeds didn’t work, your plugin solved this in a flash. Thanks for your great plugin. Check out the notary site I installed your plugin on and see that the feed links are gone from the source page.

    Kurt
    San Diego Mobile Notary

  9. Pingback: WP Security Loophole | Russ Ruffino Live

  10. Di says:

    Hi Fredrik,

    This sounds good, but as a non-techie, how do I know which tags to select/remove to eg prevent an unauthorized ebook download? Or do I just select all of the options?

    Thanks!

    • Fredrik Malmgren says:

      I might be wrong but I don’t think any of these options will prevent an unauthorized ebook download.

  11. Pingback: must have wordpress plugins

  12. Does this work with the new version of wordpress? Are you still planning to develop this and keep it up to date?

    • Fredrik Malmgren says:

      I haven’t tested this on WordPress 3.3 yet but plan to do that soon. I don’t anticipate any problems with it.

      The plugin is rather simple and basically only removes the links from wp_head. I don’t want to clutter it with other functions – keep it simple is always best!

  13. mac says:

    Thanks for the great plugin.
    I tried the theme functions to remove some wp head items but failed.

    I will try your plugin.

  14. Pingback: Clean up wp_head | Best Plugins - wordpress – widgets – plugin 2012

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>