Hello,
Thank you for contacting Rank Math today.
You can use the following filter to remove the Schema data:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
return [];
}, 99, 2);
Looking forward to helping you. Thank you.
Ok, Thank you. Where exactly do I put this code please?
Hello,
Thank you for contacting Rank Math today.
This code should be added to your theme’s functions.php file. Could you also let us know how you have disabled schema on your site?
Is the schema module disabled via Rank Math > Dashboard?
Looking forward to helping you. Thank you.
Yes, the schema has been disabled. I still see, when testing the schema, the blog posting section that is showing errors and warnings. That seems to be in the footer from what I see in the code? I already tried putting into the themes functions.php and that blogPosting and error etc is still there. I’m wondering if it may be a fault of the theme, so I’ll go ask them too.
Hi Barrie,
If you dont mind…. what schema plugin are you using?
Regards
Hi Barrie,
Thanks for the follow up.
This is likely related to the theme since Rank Math adds the schema code to the head section and not the footer.
Please let us know if we can help further. Thank you.
wp-schema pro is what I use now. The mark up from that source is passing without a problem. I have also contacted themify because of the issue. It may be something from their side.
The code in question starts with:
<!– SCHEMA BEGIN –>
This is not from the wp schema pugin.
Thanks Barrie
Who did recommend you this plugin? makes good seo results?
Karanadisha, I just completed a course on Schema Markup to improve my skills. This is the plugin recommended by the tutor. It’s very easy to use and there are usually no issues with passing all the checks, providing the set up is done correctly of course. That is usually a one time set up for blogs, but with products and specific pages it requires a more specific set up. It’s all very easy to work with though.
Thanks to all for your time. I can hopefully get this all sorted now.
Hi Barrie,
Thank you for the reply.
Please let us know if we can provide any additional assistance 🙂
Thank you.