1. Home
  2. Knowledge Base
  3. Remove Organization Schema from Your Website

Remove Organization Schema from Your Website

In this knowledgebase article, we’re going to walk you through how to remove Organization Schema from your website.

Remove Organisation Schema from All Pages Except Homepage

Note: We recommend adding the following code snippets to your child theme’s functions.php. Adding it to your parent theme could mean that you’ll lose all changes upon updating when your theme developer releases an update.

You can use the below code to remove the Organization Schema from all pages except the homepage:

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

Remove Organisation Schema from the Homepage

You can use the below code to remove the Organization Schema just from the homepage:

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

Note: All these entities are interconnected and we do not recommend removing any one entity from the Schema. Only developers who have sound knowledge of what exactly they are doing should attempt this. Also, it’s not recommended to remove the global entities as it could break the Schema structure.

If you still have any questions about removing Organization Schema from your website – you’re always more than welcome to contact our dedicated support team. They are available 24/7, 365 days a year…

Still not using Rank Math?

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

Know more about the PRO Version

Was this article helpful?

Still need help?

?

Submit Your Question

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

Open Ticket