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 "http://www.domain-name.com".

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.

rss-feed-disable

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.

Capture

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.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs