By Prem Tiwari. Updated on
In this tutorial, we are going to share how to disable Yoast SEO schema JSOM-LD completely by using the simple WordPress code.
Yoast SEO 11.0 features a completely rewritten Schema.org implementation — the first one of its kind, offering a fully integrated graph.
By default Yoast, doesn’t include a setting to disable their Schema Data. They do an OK job constructing it but some of you may want to disable it completely if you’re using another plugin or method to generate it.
Login to your WordPress dashboard and head over to the editor within the tab menu appearance, find your functions file (normally named functions.php) and add the code below just before the PHP tag is closed at the bottom.
* Disable Yoast SEO Schema JSON-LD completely
$data = array();
add_filter('wpseo_json_ld_output', 'fwm_remove_yoast_json', 10, 1);
Save the file and refresh you page, the Yoast Schema Data has been removed from your site.
Sharing is caring!