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 ——>

Tags: ,

2 Responses to “Removing RSS Links in WordPress”

  1. Jon says:

    Is this still relevant with versions like WP 2.8? I don’t have any of those link rel in my theme, but still comments feed shows up. It must be coming from somewhere else.

  2. Shinzies says:

    Sure, but this only removes the rss feeds from the front page address bar, once you click the link to topic you are again able to save the feed…

    Any other alternatives you know about, that will remove the rss once and for all, other than going through the wordpress source code and messing around with the core files . ..