Do you wish to disable RSS feeds in your WordPress website?
RSS feeds permit customers to subscribe to your weblog posts. Nonetheless, chances are you’ll wish to flip off the RSS feeds when constructing small static web sites. By default, there is no such thing as a choice to take away RSS feeds in WordPress.
On this article, we’ll present you tips on how to disable RSS feeds in WordPress.
What are RSS Feeds and Why Disable Them?
RSS is a sort of internet feed that helps customers get real-time updates and content material out of your web site. RSS stands for Actually Easy Syndication or Wealthy Website Abstract. It permits your readers to robotically get new content material in e mail newsletters, RSS feed readers, and different units.
Whereas RSS feeds are helpful in your web site, WordPress can add a number of feeds which may not be helpful. As an example, there are taxonomy feeds, creator feeds, particular person submit and web page feeds, and extra.
You’ll be able to disable these RSS feeds and save engines like google like Google from exhausting their web site crawl quota. This fashion, search engine bots received’t crawl feeds that aren’t related to your website and as a substitute index extra necessary pages.
Plus, disabling RSS feeds is smart when you’re not operating a WordPress weblog, however utilizing WordPress extra as a CMS (content material administration system) or easy web site builder. It’s additionally excellent for eCommerce shops that don’t have a weblog.
At WPBeginner, we’ve got disabled a number of of the RSS feeds to assist enhance our search engine optimization rankings.
That being mentioned, let’s see how one can disable RSS feeds in WordPress.
Methodology 1: Disable RSS Feeds Utilizing a Plugin
The simplest manner of disabling RSS feeds is through the use of a WordPress plugin like All in One search engine optimization (AIOSEO).
It’s the greatest search engine optimization plugin for WordPress and allows you to optimize your website for engines like google with out requiring technical information or hiring an knowledgeable.
This technique is simpler and is really helpful for novices. We’ll use the AIOSEO Lite model for this tutorial as a result of it lets you disable RSS feeds in WordPress.
Nonetheless, if you wish to enhance your search rankings, then you need to use the AIOSEO Professional model to unlock extra highly effective options like XML sitemaps and redirection supervisor.
The very first thing it is advisable do is set up and activate the AIOSEO plugin. For extra particulars, see our step-by-step information on tips on how to set up a WordPress plugin.
Upon activation, you’ll see the AIOSEO setup wizard. Merely click on the ‘Let’s Get Began’ button and comply with the onscreen directions. For extra particulars, please see our information on tips on how to arrange All in One search engine optimization in WordPress.
Subsequent, you’ll be able to go to All in One search engine optimization » Search Look out of your WordPress dashboard and head to the ‘Superior’ tab.
After that, you’ll be able to scroll to the ‘Crawl Cleanup’ possibility and click on the toggle to allow it.
When you’ve enabled the Crawl Cleanup possibility, merely scroll right down to the RSS feeds you wish to disable.
We advocate retaining the World RSS Feed enabled as a result of it permits your subscribed customers to get the most recent updates. Disabling this is able to imply folks received’t be capable of subscribe to your web site, which may damage your WordPress search engine optimization.
However, you’ll be able to disable different varieties of RSS feeds.
For instance, you’ll be able to change off RSS feeds for authors, search, attachments, taxonomy, and extra.
Don’t neglect to click on the ‘Save Adjustments’ button if you’re finished.
Methodology 2: Manually Disable RSS Feeds in WordPress
One other manner of disabling RSS feeds in WordPress is by including code to your web site theme’s features.php file.
This technique requires you to edit WordPress information, and you need to use this technique if you’re comfy pasting snippets from internet into WordPress.
Notice: We don’t advocate enhancing the features.php file straight in your web site as a result of the slightest mistake can break your website.
You may also add this code in a site-specific plugin or in a code snippets plugin:
wp_die( __(‘No feed accessible,please go to our <a href=”‘. get_bloginfo(‘url’) .'”>homepage</a>!’) );
}
add_action(‘do_feed’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_rdf’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_rss’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_rss2’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_atom’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_rss2_comments’, ‘wpb_disable_feed’, 1);
add_action(‘do_feed_atom_comments’, ‘wpb_disable_feed’, 1);
As soon as the code is uploaded in your WordPress internet hosting server, you’ll be able to attempt to request any RSS feed web page.
To verify, you’ll be able to enter https://instance.com/feed/ URL in your browser. Simply be sure that to interchange ‘instance.com’ together with your web site URL.
We hope this text helped you learn to disable RSS feeds in WordPress. You may additionally wish to see our information on WooCommerce made easy and tips on how to begin a podcast utilizing WordPress.
If you happen to favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Fb.
The submit How you can Disable RSS Feeds in WordPress first appeared on WPBeginner.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!