Doc WordPress WordPress Tricks, Tips & Snippets

10Oct/150

Remove unnecessary stuff from WordPress header

By default WordPress adds quite some meta junk to your site's <head>. Luckily for us these can easily be disabled without the need to install a plugin for this (remember: the less plugins the better). Just add this to your website's functions.php (found in your theme folder):


remove_action('wp_head', 'wp_generator'); // remove wp version header
remove_action('wp_head', 'wlwmanifest_link'); // remove MS-live writer
remove_action('wp_head', 'rsd_link'); // remove Really Simple Discovery
remove_action( 'wp_head', 'feed_links_extra', 3 ); // remove Comments Feed

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.