/ Published in: PHP
JSON-LD is one of the micromarking schemes. If you use the SEO plugin Yoast SEO on your website, then it defaults to a JSON-LD scheme for the entire website that cannot be changed. In order for the site owner to be able to use any other microdata, this must be disabled. Any settings in the admin panel plug-in Yoast SEO for this does not provide.
This method involves editing the functions.php file of your active WordPress theme:
This method involves editing the functions.php file of your active WordPress theme:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function wpschool_remove_yoast_jsonld( $data ){ return $data; } add_filter( 'wpseo_json_ld_output', 'wpschool_remove_yoast_jsonld', 10, 1 );
URL: https://en-au.wordpress.org/plugins/disable-yoast-ld-json/