Do you want to disable the default WordPress sitemap in your web page?
The default sitemap serve as used to be as soon as presented in WordPress 5.5, and it lets in WordPress to submit XML sitemaps in your web page robotically. The issue is that this option is lacking advanced WordPress SEO choices that you wish to have to rank higher.
In this article, we can show you recommendations on find out how to merely disable the WordPress sitemap and improve it with a further tricky solution.
Why Will have to You Disable WordPress Sitemap
An XML sitemap is a record that lists your whole web page content material subject matter in an XML structure, which makes it easy for engines like google to search out and index your content material subject matter.
Sitemaps are very advisable in your web page as they invent further website online guests and reinforce the search engine optimization scores of your internet website online.
However, a lot of WordPress SEO plugins like All in One search engine optimization, Yoast search engine optimization, and Google XML Sitemaps already put in force sitemaps in your web page, which results in WordPress pages having two gadgets of sitemaps.
Copy sitemaps for the same WordPress internet web page can confuse engines like google and can drop your search engine optimization scores.
Must you’re not using a SEO plugin in your sitemap, then you definately’re missing out on advanced choices. As an example, many standard WordPress search engine optimization plugins offer choices like Video Sitemap, Data Sitemap, RSS Sitemap, and plenty of others that you wish to have to outrank your pageant in SEO.
With that being mentioned, let’s see the way you’ll merely disable the default WordPress sitemap.
Approach 1. Disable WordPress Sitemap Using WordPress SEO Plugin
Must you’re using any of the most well liked WordPress SEO plugins, then they’re going to robotically disable the default WordPress sitemap serve as and trade it with a further tricky solution.
For the sake of this tutorial, we can be demonstrating AIOSEO plugin because of that’s the plugin we use on WPBeginner.
All in One SEO is the most efficient WordPress SEO plugin that allows you to merely optimize your WordPress web page for engines like google and social media platforms. Over 3 million web websites use AIOSEO along with our non-public.
By the use of default, All in One SEO will permit their Sitemap serve as for you which ones robotically replaces the fundamental WordPress sitemaps upon activation.
The first thing you wish to have to do is ready up and switch at the AIOSEO plugin. For added details, please see our knowledge on tips on how to set up a WordPress plugin.
Once activated, it is very important configure the AIOSEO plugin. If you wish to have lend a hand, then you definately’ll observe our step-by-step knowledge on tips on how to arrange All in One search engine optimization in WordPress accurately.
After that, head over to the All in One SEO » Sitemaps internet web page from the WordPress admin dashboard to review your sitemap settings.
Next, navigate to the ‘Fundamental Sitemap’ tab. Proper right here, ensure that the ‘Allow Sitemap’ switch is set to ‘Lively’. This will likely more and more disable the default WordPress sitemap.
With the exception of the Fundamental Sitemap, we propose that you just permit the video sitemap, information sitemap, along with the RSS sitemap in your internet website online to maximize your SEO rankings.
Approach 2. Disable WordPress Sitemap Using Code Snippet
You’ll moreover merely disable the default WordPress sitemap using code, too. You’ll add the code snippet for your theme’s purposes.php record.
However, crucial drawback in together with code to your functions.php record is that even a tiny mistake can injury your web page.
Because of this we propose using WPCode so that you can upload customized code to WordPress. This free plugin makes it easy so that you can upload code snippets in WordPress with out a wish to edit your theme’s functions.php record.
First, you wish to have to place in and switch at the loose WPCode plugin. For extra instructions, check out our knowledge on tips on how to set up a WordPress plugin.
Next, go to the new Code Snippets get entry to throughout the left-hand menu of your WordPress dashboard. This will likely more and more raise you to the ‘All Snippets’ internet web page.
Next, merely click on on on the ‘Add New’ button.
WPCode will then take you to the ‘Add Snippet’ internet web page where you’ll make a selection so that you can upload your own custom designed code or search to go looking out an present snippet from the WPCode library.
As we wish to add custom designed code, simply hover over ‘Add Your Custom designed Code (New Snippet)’ risk and click on on ‘Use snippet.’
Now you’re going to be directed to the ‘Create Custom designed Snippet’ internet web page. You’ll get began by means of typing a name in your code snippet. It can be the remaining you prefer.
Then, make a choice a ‘Code Type’ from the dropdown menu to the proper. As we can be using a PHP code, simply click on on on the ‘PHP Snippet’ risk.
Next, simply reproduction and paste the following PHP code snippet throughout the ‘Code Preview’.
add_filter( 'wp_sitemaps_enabled', '__return_false' );
It’ll seem to be this when you’ve completed so.
After pasting the code, scroll all of the approach right down to the ‘Insertion’ section where you’re going to find two insert methods.
Simply make a selection the ‘Auto Insert’ risk since you want it to run sitewide.
Now, go to the very best of the internet web page, toggle the switch from ‘Inactive’ to ‘Lively’ on the most efficient right kind corner, and then click on at the ‘Save Snippet’ button.
Once, you could have saved and activated the code snippet, it’s going to be energetic and the default WordPress sitemap disabled.
We hope this newsletter helped you learn how to disable the default WordPress sitemap. You might also want to try our final WordPress search engine optimization information to improve your rankings, and see our comparison of the most productive controlled WordPress web hosting.
Must you most well-liked this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll moreover find us on Twitter and Fb.
The post The best way to Simply Disable the Default WordPress Sitemap first seemed on WPBeginner.
0 Comments