Schema Mark Up

#36168
  • Resolved Barrie Evans
    Rank Math free

    hi,
    I am using a dedicated plugin for schema and want to remove the schema markup entered by Rank math plugin. I was wondering where I can remove the data installed by the plugin. I am getting errors in my markup when testing and these don’t come from the source I am now using. When setting up Rank Math, I completely forgot about the schema. I have now turned it off in the plugin but the data is still there and showing the errors.
    Can you help please?
    Thanks
    Barrie

Viewing 12 replies - 1 through 12 (of 12 total)
  • Michael Davis
    Rank Math pro

    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.

    ​​​​​​

    Barrie Evans
    Rank Math free

    Ok, Thank you. Where exactly do I put this code please?

    Michael Davis
    Rank Math pro

    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.

    ​​​​​​

    Barrie Evans
    Rank Math free

    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.

    Karanadiksha
    Rank Math free

    Hi Barrie,

    If you dont mind…. what schema plugin are you using?

    Regards

    Michael Davis
    Rank Math pro

    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.

    Barrie Evans
    Rank Math free

    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.

    Karanadiksha
    Rank Math free

    Thanks Barrie

    Who did recommend you this plugin? makes good seo results?

    Barrie Evans
    Rank Math free

    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.

    Karanadiksha
    Rank Math free

    Thanks Barrie

    Barrie Evans
    Rank Math free

    Thanks to all for your time. I can hopefully get this all sorted now.

    Michael Davis
    Rank Math pro

    Hi Barrie,

    Thank you for the reply.

    Please let us know if we can provide any additional assistance 🙂

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

The ticket ‘Schema Mark Up’ is closed to new replies.