Do you need to disable the default WordPress sitemap to your website online?

The default sitemap function was once offered in WordPress 5.5, and it allows WordPress to post XML sitemaps to your website online mechanically. The problem is that this selection is missing complex WordPress search engine optimization options that you want to rank upper.

On this article, we will be able to display you tips on how to simply disable the WordPress sitemap and reinforce it with a extra tough answer.

How to Easily Disable the Default WordPress Sitemap

Why Must You Disable WordPress Sitemap

An XML sitemap is a document that lists your entire website online content material in an XML layout, which makes it simple for serps to find and index your content material.

Sitemaps are very recommended to your website online as they create extra site visitors and reinforce the search engine optimization scores of your web site.

Alternatively, a large number of WordPress search engine optimization plugins like All in One search engine optimization, Yoast search engine optimization, and Google XML Sitemaps already enforce sitemaps to your website online, which ends up in WordPress pages having two units of sitemaps.

Reproduction sitemaps for a similar WordPress web page can confuse serps and will drop your search engine optimization scores.

Should you’re now not the use of a search engine optimization plugin to your sitemap, you then’re lacking out on complex options. For instance, many standard WordPress search engine optimization plugins be offering options like Video Sitemap, Information Sitemap, RSS Sitemap, and many others that you want to outrank your competition in search engine optimization.

With that being stated, let’s see how you’ll simply disable the default WordPress sitemap.

Means 1. Disable WordPress Sitemap The usage of WordPress search engine optimization Plugin

Should you’re the use of any of the preferred WordPress search engine optimization plugins, then they’re going to mechanically disable the default WordPress sitemap function and exchange it with a extra tough answer.

For the sake of this instructional, we will be able to be demonstrating AIOSEO plugin as a result of that’s the plugin we use on WPBeginner.

All in One search engine optimization is the most productive WordPress search engine optimization plugin that lets you simply optimize your WordPress website online for serps and social media platforms. Over 3 million internet sites use AIOSEO together with our personal.

By way of default, All in One search engine optimization will allow their Sitemap function for you which of them mechanically replaces the elemental WordPress sitemaps upon activation.

The very first thing you want to do is set up and turn on the AIOSEO plugin. For extra main points, please see our information on tips on how to set up a WordPress plugin.

As soon as activated, it is important to configure the AIOSEO plugin. If you want assist, then you’ll apply our step by step information on tips on how to arrange All in One search engine optimization in WordPress accurately.

After that, head over to the All in One search engine optimization » Sitemaps web page from the WordPress admin dashboard to study your sitemap settings.

Subsequent, navigate to the ‘Basic Sitemap’ tab. Right here, make certain that the ‘Permit Sitemap’ transfer is about to ‘Energetic’. This may increasingly disable the default WordPress sitemap.

AIOSEO sitemap settings

Except the Basic Sitemap, we suggest that you simply allow the video sitemap, information sitemap, in addition to the RSS sitemap to your web site to maximise your search engine optimization scores.

Means 2. Disable WordPress Sitemap The usage of Code Snippet

You’ll additionally simply disable the default WordPress sitemap the use of code, too. You’ll upload the code snippet on your theme’s purposes.php document.

Alternatively, the most important downside in including code in your purposes.php document is that even a tiny mistake can damage your website online.

For this reason we suggest the use of WPCode so as to add customized code to WordPress. This loose plugin makes it simple so as to add code snippets in WordPress with no need to edit your theme’s purposes.php document.

First, you want to put in and turn on the loose WPCode plugin. For additional directions, take a look at our information on tips on how to set up a WordPress plugin.

Subsequent, cross to the brand new Code Snippets access within the left-hand menu of your WordPress dashboard. This may increasingly carry you to the ‘All Snippets’ web page.

Subsequent, simply click on at the ‘Upload New’ button.

Go to Code Snippets and click on Add New

WPCode will then take you to the ‘Upload Snippet’ web page the place you’ll select so as to add your individual customized code or seek to search out an current snippet from the WPCode library.

As we need to upload customized code, merely hover over ‘Upload Your Customized Code (New Snippet)’ possibility and click on ‘Use snippet.’

Click on the Use Snippet button

Now you’re going to be directed to the ‘Create Customized Snippet’ web page. You’ll get started by way of typing a reputation to your code snippet. It may be the rest you favor.

Then, choose a ‘Code Sort’ from the dropdown menu to the appropriate. As we will be able to be the use of a PHP code, merely click on at the ‘PHP Snippet’ possibility.

Type a name for your code snippet and choose PHP as code type

Subsequent, merely replica and paste the next PHP code snippet within the ‘Code Preview’.

add_filter( 'wp_sitemaps_enabled', '__return_false' );

It is going to appear to be this whilst you’ve finished so.

Paste your disable sitemap snippet

After pasting the code, scroll all the way down to the ‘Insertion’ segment the place you’re going to in finding two insert strategies.

Merely select the ‘Auto Insert’ possibility since you need it to run sitewide.

Choose an Insertion mode

Now, cross to the highest of the web page, toggle the transfer from ‘Inactive’ to ‘Energetic’ on the best proper nook, after which click on the ‘Save Snippet’ button.

As soon as, you might have stored and activated the code snippet, it’s going to be lively and the default WordPress sitemap disabled.

Save your snippet

We are hoping 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 optimization information to reinforce your scores, and notice our comparability of the most productive controlled WordPress web hosting.

Should you preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll additionally in finding us on Twitter and Fb.

The submit The best way to Simply Disable the Default WordPress Sitemap first gave the impression on WPBeginner.

WordPress Maintenance

[ continue ]