How to Disable RSS Feed on WordPress Website

Someone has asked me a question “How to Disable RSS Feed on WordPress website” so that anyone can’t see the RSS feed of the site. Instead of RSS feed, he wants to display the custom message “No feed available, please visit the "".

How to Disable RSS Feed on WordPress Website

Open your functions.php file from current activated theme’s folders and copy paste below code at the end of the file.

After adding the above code inside in your functions.php file, it will display the below message and link to redirect homepage.


Apart from this WordPress also generates the RSS feeds link inside your page head like the below screenshot. You can go one step further and remove these RSS feed links from your pages HTML code.


Copy the below code into your functions.php file to remove the RSS feed links from your page.

Hope this tutorial helped you, do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , , , , ,