
WordPress by default adds the following code to the head section of your WordPress site:
<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 dont need this or dont plan to use Windows Live Writer. This post will show you how to remove those 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 instuctions below:
1. Navigate to Design -> Theme Editor and click Theme Functions (functions.php) from the list of theme files
2. Just before the closing ?> tag, add the following:
remove_action ('wp_head', 'rsd_link');
remove_action ('wp_head', 'wlwmanifest_link');
3. Now click on update and the file will be saved.
For those of you that dont have a functions file, simply create a new file and call it functions.php and add the following code to that file:
<?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.
Tags: wodpress, wordpress hacks

