How to remove application/ld + json YOAST SEO plugin in wordpress


/ Published in: PHP
Save to your folder(s)

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:


Copy this code and paste it in your HTML
  1. function wpschool_remove_yoast_jsonld( $data ){
  2. $data = array();
  3. return $data;
  4. }
  5. add_filter( 'wpseo_json_ld_output', 'wpschool_remove_yoast_jsonld', 10, 1 );

URL: https://en-au.wordpress.org/plugins/disable-yoast-ld-json/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.