How to Disable Schema Markup Added by Astra Theme: A Step-by-Step Guide

If you are running a WordPress website using the Astra theme, you may have noticed that it automatically adds schema markup to your pages. While structured data is essential for SEO, sometimes it can conflict with plugins like Rank Math or WP Job Manager, resulting in duplicate schema warnings or Google Rich Results issues.

In this guide, we’ll show you how to disable Astra’s schema markup safely without affecting your site’s SEO performance.


Why Disable Astra Schema Markup?

Astra adds JSON-LD markup for Articles, WebPages, and BlogPosting by default. While this is helpful for basic SEO, it can cause issues when:

  1. You use Rank Math or Yoast SEO, which also inject schema.
  2. You have job listings using WP Job Manager — Google requires a clean JobPosting schema, and duplicates can prevent your jobs from showing in Google Jobs.
  3. You want full control over the structured data on your site.

By disabling Astra schema, you can avoid conflicts and make sure Google reads the correct structured data for your content.


Methods to Disable Astra Schema

1. Disable All Astra Schema via Code

Add the following code to your child theme’s functions.php or use a Code Snippets plugin:

// Disable all Astra schema markup
add_filter( 'astra_schema_enabled', '__return_false' );

This disables all JSON-LD structured data generated by Astra.

2. Disable Specific Schema Components

If you want to keep certain schema types (like breadcrumbs) but remove blog or page schema:

add_filter( 'astra_disable_blog_post_schema', '__return_true' );
add_filter( 'astra_disable_blog_schema', '__return_true' );
add_filter( 'astra_disable_single_post_schema', '__return_true' );
add_filter( 'astra_disable_single_page_schema', '__return_true' );

This method allows selective control over schema while avoiding duplicates.

3. Use Rank Math or Yoast SEO Settings

If you’re using Rank Math SEO:

  • Go to Rank Math → Titles & Meta → Global Meta
  • Enable “Remove Duplicate Schema”
    This ensures Rank Math manages your schema and Astra’s default JSON-LD won’t conflict.

Best Practices After Disabling Astra Schema

  1. Test Your Pages using Google Rich Results Test to ensure structured data is valid.
  2. Let WP Job Manager handle JobPosting schema if you have job listings.
  3. Keep breadcrumbs schema enabled if your theme or plugin supports it — it helps Google understand your site structure.
  4. Clear caches after making changes to ensure the new schema is served.

Disabling Astra’s default schema markup is safe and recommended if you want complete control over your structured data, especially for job listings or sites using Rank Math. Using the filter hooks above, you can remove duplicates while keeping essential SEO elements intact.

Take action today to optimize your site for Google Rich Results and ensure that your content is properly indexed without conflicts.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top