How to remove @type “Organization”
-
When we test our structured data with the Google Structured Data Testing Tool “Organization” shows Detected in the <Script type= string as @type:”Organization”. Can we remove this from the script somehow? My SEO coordinator has asked I remove it, but is it an issue at all? Does this effect our SEO rankings at all?
I see this code that stackoverflow recommends be put in the functions.php file to disable it, but I am always reluctant to drop code into the functions.php file without a bit of vetting first. What do you think?function bybe_remove_yoast_json($data){
if ( (isset($data[‘@type’])) && ($data[‘@type’] == ‘Organization’) ) {
$data = array();
}
return $data;
}
add_filter(‘wpseo_json_ld_output’, ‘bybe_remove_yoast_json’, 10, 1);The page I need help with: [log in to see the link]
- The topic ‘How to remove @type “Organization”’ is closed to new replies.