Cleaning up wp_head
-
I have recently been creating a bare bones theme and there is some stuff in wp_head() that irritates me and frankly should not be in there.
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://domain.com/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://domain.com/wp-includes/wlwmanifest.xml" />
Windows live writer should not be enabled like this by default it should be a plugin.
<link rel='index' /> <meta name="generator" content="WordPress 2.8.6" />
(rel=”index”) until microformats become standard that shouldn’t really be in there by default. Leave it up to theme designers whether they wish to use microformats or not.
The meta generator add useless information to the <head> and should not be there. The footer link is enough to promote wordpress and publishing the version number in use in a publicly accessible format is a security risk.
Also the recent comments widget injects the following into the <head>
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
The way to style widgets is via the register_sidebar() function and utilizing the before_widget and after_widget array keys. There should be no css styling in the default codebase. Please remove this in a future update.
- The topic ‘Cleaning up wp_head’ is closed to new replies.