Do you need to disable the default WordPress sitemap in your web site?
The default sitemap characteristic was launched in WordPress 5.5, and it allows WordPress to publish XML sitemaps in your web site mechanically. The problem is that this characteristic is missing superior WordPress search engine marketing options that it’s worthwhile to rank larger.
On this article, we’ll present you find out how to simply disable the WordPress sitemap and enhance it with a extra highly effective resolution.
Why Ought to You Disable WordPress Sitemap
An XML sitemap is a file that lists all of your web site content material in an XML format, which makes it straightforward for search engines like google and yahoo to find and index your content material.
Sitemaps are very helpful in your web site as they carry extra visitors and enhance the search engine marketing rankings of your web site.
Nevertheless, quite a few WordPress search engine marketing plugins like All in One search engine marketing, Yoast search engine marketing, and Google XML Sitemaps already implement sitemaps in your web site, which ends up in WordPress pages having two units of sitemaps.
Duplicate sitemaps for a similar WordPress web page can confuse search engines like google and yahoo and may drop your search engine marketing rankings.
For those who’re not utilizing a search engine marketing plugin in your sitemap, then you definitely’re lacking out on superior options. For instance, many standard WordPress search engine marketing plugins supply options like Video Sitemap, Information Sitemap, RSS Sitemap, and so on that it’s worthwhile to outrank your rivals in search engine marketing.
With that being stated, let’s see how one can simply disable the default WordPress sitemap.
Technique 1. Disable WordPress Sitemap Utilizing WordPress search engine marketing Plugin
For those who’re utilizing any of the favored WordPress search engine marketing plugins, then they are going to mechanically disable the default WordPress sitemap characteristic and change it with a extra highly effective resolution.
For the sake of this tutorial, we can be demonstrating AIOSEO plugin as a result of that’s the plugin we use on WPBeginner.
All in One search engine marketing is the perfect WordPress search engine marketing plugin that permits you to simply optimize your WordPress web site for search engines like google and yahoo and social media platforms. Over 3 million web sites use AIOSEO together with our personal.
By default, All in One search engine marketing will allow their Sitemap characteristic for you which ones mechanically replaces the essential WordPress sitemaps upon activation.
The very first thing it’s worthwhile to do is set up and activate the AIOSEO plugin. For extra particulars, please see our information on find out how to set up a WordPress plugin.
As soon as activated, you will have to configure the AIOSEO plugin. For those who need assistance, then you’ll be able to comply with our step-by-step information on find out how to arrange All in One search engine marketing in WordPress accurately.
After that, head over to the All in One search engine marketing » Sitemaps web page from the WordPress admin dashboard to overview your sitemap settings.
Subsequent, navigate to the ‘Common Sitemap’ tab. Right here, be sure that the ‘Allow Sitemap’ change is about to ‘Lively’. It will disable the default WordPress sitemap.
Apart from the Common Sitemap, we suggest that you just allow the video sitemap, information sitemap, in addition to the RSS sitemap in your web site to maximise your search engine marketing rankings.
Technique 2. Disable WordPress Sitemap Utilizing Code Snippet
You can too simply disable the default WordPress sitemap utilizing code, too. You possibly can add the code snippet in your theme’s capabilities.php file.
Nevertheless, the most important drawback in including code to your capabilities.php file is that even a tiny mistake can break your web site.
That’s the reason we suggest utilizing WPCode so as to add customized code to WordPress. This free plugin makes it straightforward so as to add code snippets in WordPress with out having to edit your theme’s capabilities.php file.
First, it’s worthwhile to set up and activate the free WPCode plugin. For additional directions, take a look at our information on find out how to set up a WordPress plugin.
Subsequent, go to the brand new Code Snippets entry within the left-hand menu of your WordPress dashboard. It will carry you to the ‘All Snippets’ web page.
Subsequent, simply click on on the ‘Add New’ button.
WPCode will then take you to the ‘Add Snippet’ web page the place you’ll be able to select so as to add your individual customized code or search to seek out an present snippet from the WPCode library.
As we’ve got so as to add customized code, merely hover over ‘Add Your Customized Code (New Snippet)’ choice and click on ‘Use snippet.’
Now you can be directed to the ‘Create Customized Snippet’ web page. You can begin by typing a reputation in your code snippet. It may be something you want.
Then, choose a ‘Code Sort’ from the dropdown menu to the fitting. As we can be utilizing a PHP code, merely click on on the ‘PHP Snippet’ choice.
Subsequent, merely copy and paste the next PHP code snippet within the ‘Code Preview’.
add_filter( 'wp_sitemaps_enabled', '__return_false' );
It would seem like this once you’ve accomplished so.
After pasting the code, scroll right down to the ‘Insertion’ part the place you can see two insert strategies.
Merely select the ‘Auto Insert’ choice because you need it to run sitewide.
Now, go to the highest of the web page, toggle the change from ‘Inactive’ to ‘Lively’ on the prime proper nook, after which click on the ‘Save Snippet’ button.
As soon as, you may have saved and activated the code snippet, it is going to be energetic and the default WordPress sitemap disabled.
We hope this text helped you learn to disable the default WordPress sitemap. You may additionally need to take a look at our final WordPress search engine marketing information to enhance your rankings, and see our comparability of the perfect managed WordPress internet hosting.
For those who appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too discover us on Twitter and Fb.
The submit The right way to Simply Disable the Default WordPress Sitemap first appeared on WPBeginner.