How to disable Schema in Yoast SEO

yoast plugin

Schema is a feature of Yoast SEO that can help your website rank better in search engine results pages. However, if you don’t want to use Schema, you can disable it by following these steps.

Add the following code to your Functions.php file.

Yoast 11 and Newer

add_filter( 'wpseo_json_ld_output', '__return_false' );

Yoast 11 and Older

function disable_yoast_schema_data($data){
	$data = array();
	return $data;
}
add_filter('wpseo_json_ld_output', 'disable_yoast_schema_data', 10, 1);

How to Edit Functions.php file in WordPress

  1. Launch your favorite FTP client and connect to the hosting server remotely.
  2. Navigate to “/wp-content/themes/” folder.
  3. Open your active theme and locate the functions.php file.
  4. Edit and save the modified content.

Conclusion

You have learned how to disable Yoast schema. We hope that this article was helpful and that you were able to successfully disable Yoast schema on your WordPress website. If you need any additional help, please do not hesitate to contact us. We would be happy to assist you further.

FAQ

  • How do i disable Yoast SEO Schema?

Published on: 2022-10-13
Updated on: 2022-10-13

Avatar for Isaac Adams-Hands

Isaac Adams-Hands

Isaac Adams-Hands is the SEO Director at SEO North, a company that provides Search Engine Optimization services. As an SEO Professional, Isaac has considerable expertise in On-page SEO, Off-page SEO, and Technical SEO, which gives him a leg up against the competition.