Solution
Just copy the snippet bellow in your theme’s function.php file.
// remove junk from head
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'start_post_rel_link', 10, 0);
remove_action('wp_head', 'parent_post_rel_link', 10, 0);
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
Thanks to Jeff Star for this snippet.
Our WordPress themes
We have a few WordPress themes that we would like you to take a look at if you want.
check out the portfolio











Why would you want to remove the rss feed links, seems a dumb suggestion
@Ben – I think that the rss feed links don’t have any reason to be in the <head>. Anyway Jeff from digwp.com suggested this snippet and i believe a guy who wrote the best wordpress book ever.
@Boba – Not all browsers do a good job in finding RSS links insode document, and will therefor not show a Feed button to easily subscribe.
But I like the ability to remove it for non-blog/CMS sites that does not need RSS feeds.
I use wordpress for most websites I design. A lot of them are really just small static websites.
I use wordpress because it gives the client the ability to go in and change things without calling me every 10 minutes.
For this sort of site, jeff’s tip is very useful. However as Ben says there are somethings you wouldn’t want to remove from a blog.
Thanks for posting anyway
Very useful snippet, especially if creating a non-standard WordPress site that just doesn’t need that stuff.