How to Disable Schema Markup Added by Astra?

No results found. Try again with different words?

Search must be at least 3 characters.

How to Disable Schema Markup Added by Astra?

If you weren’t already aware, Astra adds what is called “Schema” markup to your posts, pages, and the rest of your website. 

Adding Schema is an SEO friendly practice that helps search engines better understand your content, including the search intent.

How does Schema help? Schema tells the search engine more about what is on your page and what the page itself is about. Because search engines can better understand the search intent, this helps boost your rankings in search. 

Removing Schema Generated by Astra

There are various reasons you may want to remove the Astra generated schema markup. Perhaps you already have a Schema setup on your website that you are happy with, or maybe Schema isn’t something you want to use. Whatever reason, it’s quick and easy to remove.

Disable all Astra Generated Schema 

If you don’t want any of the Schema types on your site, add the following code to your child themes functions.php. Not sure what a child theme is? Have a look at our handy child theme guide; and build your own child theme in under 5 minutes using our child theme generator.

add_filter( 'astra_schema_enabled', '__return_false' );

Disable Schema on a Type by Type Basis

If you only want to disable certain schema types, you can do so with the useful code snippets below. 

Note:

Copy the required code from the following list and add it to the child theme’s functions.php file.

Organization Schema

 add_filter( 'astra_organization_schema_enabled', '__return_false' );

Person Schema

 add_filter( 'astra_person_schema_enabled', '__return_false' );

SiteNavigationElement Schema

 add_filter( 'astra_site_navigation_schema_enabled', '__return_false' );

WPHeader Schema

 add_filter( 'astra_wpheader_schema_enabled', '__return_false' );

WPFooter Schema

 add_filter( 'astra_wpfooter_schema_enabled', '__return_false' );

WPSideBar Schema

 add_filter( 'astra_wpsidebar_schema_enabled', '__return_false' );

BreadcrumbList Schema

 add_filter( 'astra_breadcrumb_schema_enabled', '__return_false' );

CreativeWork Schema

 add_filter( 'astra_creativework_schema_enabled', '__return_false' );

Wrapping Up

Schema type not listed here? Don’t worry! It can still be disabled; however, you’ll need to disable all Astra schema globally with the code snippet further up the article. 

Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form