Removing RSS Links in WordPress

The project I’m working on is a static site, so it doesn’t require a RSS feed. While I’m sure that it’s possible to remove the RSS functionality from WordPress completely, it’s probably a good idea not to. Messing around with the core functionality can do Bad Things.

A much easier way is to remove the links from your theme.

  • Using your preferred FTP program, browse to /wp-content/themes/theme_name/
  • Download header.php
  • Open the header.php file in your preferred text editor
  • Delete the following lines from the file:

<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />

  • Save the changes and upload the new version of header.php into your theme directory.

Note 1: Not all three lines may be present in your theme.
Note 2: You can also comment out the RSS links using the HTML comment tags like this: <—— HTML Code ——>