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.
Table of Contents
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
- Launch your favorite FTP client and connect to the hosting server remotely.
- Navigate to “/wp-content/themes/” folder.
- Open your active theme and locate the functions.php file.
- 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: 2024-07-15