Remove WLW and RSD WordPress Links from your wordpress responsive website. WordPress by default adds the following code to the head section of your WordPress site:
1 2 | <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" /> |
These links are used if you plan on using Windows Live Writer to write to your wordpress blog/site.
Many of you simply don’t need this or don’t plan to use Windows Live Writer. This post will show you how to remove WLW and RSD wordpress links from you head section and reduce the size of the page and potentially make your pages load much faster.
Now to remove these links, simply login to your WordPress admin area and follow the instructions below:
- Navigate to Design -> Theme Editor and click Theme Functions (functions.php) from the list of theme files
- Just before the closing ?> tag, add the following:
- Now click on update and the file will be saved.
1 2 | remove_action ('wp_head', 'rsd_link'); remove_action ('wp_head', 'wlwmanifest_link'); |
For those of you that don’t have a functions file, simply create a new file and call it functions.php and add the following code to that file:
1 2 3 4 | <?php remove_action ('wp_head', 'rsd_link'); remove_action ('wp_head', 'wlwmanifest_link'); ?> |
The WLW and RSD links should now be removed from your site. To check this simply visit your website and hit ctrl + u
, which shows you the source code. If all has gone well the generator code is no longer there. That’s how easy it is to remove WLW and RSD WordPress links!
Whilst you are cleaning up your site and removing all the bloated code make sure your website uses HTTPS instead of HTTP connections to avoid any browser error messages that may be shown to your visitors and also remove redundant WordPress meta tags that get added to your header!
These edits will ensure your website has clean code, is optimised for search engines to crawl efficiently not to mention give you a slight increase in website speed.