Blog Help

  Homes arrow Blog Help arrow Page 3 - WordPress CMS Tips: Removing RSS Feeds
 Webmaster Tools
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
Password Strength
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Forums Sitemap 
Weekly Newsletter
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
  >>> SIGN UP!  
  Lost Password? 

WordPress CMS Tips: Removing RSS Feeds
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3

    Table of Contents:
  • WordPress CMS Tips: Removing RSS Feeds
  • RSS problem for non-blogging applications
  • Technical solution using PHP and HTML editing
  • The .htaccess solution

  • Rate this Article: Poor Best 
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article




    WordPress CMS Tips: Removing RSS Feeds - Technical solution using PHP and HTML editing

    (Page 3 of 4 )

    Before you fully implement the solutions suggested in this tutorial, you must meet the following requirements:

    First, you must have full access to your WordPress FTP server. This makes it possible for you to upload and download files via the hosting FTP server. Full access means you can edit all files starting from the server root directory.

    Second, you must have full/administrative access to your WordPress CMS dashboard panel. This is the URL accessible via (replace "thisisyourwordpressblog" with your own domain name) Make sure you have the username and password.

    Now that you have the necessary access to edit your files, we can get started. First, we'll see how to remove the RSS feed icon in the browser address bar.

    Using your favorite FTP client, connect to your web server and navigate to the path (/wp-content/themes/) where you can download the header.php file of your main WordPress template (the one you are currently using in your WordPress website).

    Once downloaded, open the file and remove this line in the code:

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

    Save it and upload it back to your FTP server (same path as before). Check to see if the RSS feed icon is gone in the browser address bar.

    Next, you need to disable RSS in the WordPress functions. The first thing you can do is log in as administrator in your WordPress admin panel accessible at /wp-admin. Once you are logged in, navigate to this path (using WordPress 2.8.6):

    Dashboard Appearance Editor

    Look for "Theme functions" or "functions.php." Click it, and the WordPress-based source code editor will show. Navigate to the bottom of the source code, and then copy and paste the script below:

    function fb_disable_feed() {

       wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );



    add_action('do_feed', 'fb_disable_feed', 1);

    add_action('do_feed_rdf', 'fb_disable_feed', 1);

    add_action('do_feed_rss', 'fb_disable_feed', 1);

    add_action('do_feed_rss2', 'fb_disable_feed', 1);

    add_action('do_feed_atom', 'fb_disable_feed', 1);


    Below is the screen shot after pasting the code:

    So when you access any of the feed URLs, you will receive a message after this has been implemented that states:

    No feed available, please visit our homepage!


    Other references pertaining to disabling a WordPress feed can be found here:

    Note that the above script provides a 500 internal server error. As a workaround, you can make some adjustments in the function.php (WordPress core internal files) -- but this is NOT recommended. If you are interested, however, you can read this thread in the WordPress forum:

    The path to functions.php in the core files is : /wp-includes/functions.php. Editing the core files is not recommended by WordPress, because every time you do a WordPress update (recommended), you will need to edit those affected core files again.

    More Blog Help Articles
    More By Codex-M



    - Blogging to Attract Holiday Shoppers
    - Commit to Your Blog, or Don`t Blog
    - Should You Blog on Google Plus?
    - Fast Blog Post Ideas
    - Organize Your Business Blogging
    - Too Busy to Blog?
    - The Value of a Business Blog
    - WordPress CMS Tips: Removing RSS Feeds
    - Add Google Custom Search to WordPress Blogs
    - Start Blogging with Blogger
    - Bloggers and the Associated Press: the Past ...
    - WordPress Vs. Blogger: Which Should You Choo...
    - Can You Make Money with a Free Blog?
    - A Beginner`s Guide to Self Hosting Your Blog
    - No Blog Stands Alone: Why You Need Affiliates

    Developer Shed Affiliates


    © 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap