🌞 Summer Sale DISCOUNT!


Removing Schema From Your Posts & Pages

Rank Math makes it extremely easy to add Schema Markup to your posts and pages in just a few clicks, thanks to the wide range of built-in Schema types. But, in some cases, you may need to remove Schema from your posts or pages, especially when you’re troubleshooting to identify and fix conflicts related to structured data.

How to Add or Remove Schema From Your Posts & Pages

In this tutorial, we’ll walk you through how to remove all Schema from your post/page.

Note: To remove the Schema generated by Rank Math altogether, head to WordPress dashboard Rank Math SEO Dashboard and disable the Schema module.

Remove Schema from Your Posts and Pages:

1 Removing Schema Under the Schema Tab

You can remove all Schema types added to a post under the Schema tab of Rank Math’s Meta Box by following the exact steps described below.

1.1 Edit Your Post or Page

At first, head over to the edit page of that post, by clicking Edit as shown below:

Open Post

1.2 Open Rank Math in the Gutenberg Sidebar

Click on the Rank Math SEO icon that displays alongside this post/page’s SEO score to open the SEO settings for this page.

Or alternatively, click the three vertical dots in the top right-hand corner of the edit page and select Rank Math in the Plugins section – as shown below.

Click on Rank Math

1.3 Navigate to the Schema Settings for This Post/Page

Click on the Schema tab in the Rank Math SEO. If it doesn’t appear here, ensure that you have enabled the Schema module in your dashboard by navigating to Rank Math SEO Dashboard Modules in your WordPress admin area.

Click on Schema Generator

1.4 Delete All Schema In Use

Now simply delete all the types shown under Schema in Use. You can delete the existing Schema by clicking the delete icon next to the Schema and clicking Yes on the confirmation dialog.

Deleting all Schema shown here will remove these Schema data on the front end but some Schema like Organization, Sitelinks Search Box, Breadcrumbs might still be added to the page (based on your sitewide Schema settings).

Delete the Schema in Use

Once you delete all the Schema types shown under Schema in Use, the section will be removed and you will see the following:

Schema Deleted

1.5 Update Your Post or Page

Now simply update the existing post/page as you normally would after making a change or click on Publish (if this is a newly created post/page).

Click on Publish

You can then verify that the Schema has been removed using the Schema Testing Tool.

2 Set Schema to None Using Bulk Actions PRO

Rank Math PRO users can also make use of Bulk Actions to remove Schema. The Bulk Actions feature lets you remove Schema from multiple posts/pages at once so that you don’t have to manually open and remove Schema from each post/page.

To remove Schema with bulk actions, you can follow the exact steps shown below.

2.1 Open Posts/Pages

Open the Posts/Pages in your WordPress admin area.

Open posts in WordPress admin area

2.2 Select the Posts/Pages to Remove Schema

From the list of posts/pages, select the ones with Schema data to be removed. The checkbox available at the top left corner will let you select/unselect all posts/pages at once, while the checkbox before each post/page will let you select/unselect a specific post/page.

Select the Posts/Pages to remove Schema

2.3 Set Schema to None

From the Bulk Actions drop-down list, select Set Schema: None and then click the Apply button.

Set Schema to None with Bulk Actions

You’ll see a confirmation prompt with a warning that all your existing Schema will be deleted and the action is irreversible. If you intend to remove Schema from these pages, click OK.

Now Schema for all the selected posts or pages will be set to Off as shown below.

Schema: Off

Note: When you remove Schema from your posts with Bulk Actions, your Video Schema will also be removed. But if you had enabled the Autodetect Video option under Rank Math SEO Titles & Meta Posts, then the Video Schema will be added once again when you,

1) Manually open and update the post (or)
2) Use Generate Video Schema for Old Posts/Pages option available under Rank Math SEO Status & Tools Database Tools

3 Using Code Snippet

You can use the below filter to remove the Schema on any specific page like the homepage. However, the filter needs to be customized to meet your specific requirements. You can contact our support team to review your requirements and modify the filter. 

add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    if ( ! is_front_page() || ! isset( $data['publisher'] ) ) {
        return $data;
    unset($data['publisher']); //set the data to remove
    return $data;	
}, 99, 2);

And, that’s it! You can confirm that the Schema for your page has been removed with the Google Rich Results Testing Tool. If you still have any questions about removing Schema from your website, please feel free to reach our support team directly from here, and we’re always here to help.

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles