Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Yes, Rank Math’s schema will not be affected if you delete the lines you have shared in your screenshot since it is placed inside this line on your page’s source code:
script type="application/ld+json" class="rank-math-schema"
However, we recommend checking which plugin/theme is adding it to your site as it is invalid. Deleting that line in your headper.php directly may cause some issues on the front end.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/
Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
Once you have found which plugin/theme, you can get in touch with them to remove the schema script as Rank Math already adds it to your site correctly.
Hope that helps.
Thank you.
Thank you for answer but I don’t think you understand me correctly. Because I couldn’t match your answer with my question. How do I fix this error on Search console? There is nothing causing conflict. Rank math cannot add its own schema to the site.
Hello,
It seems that you have already marked this ticket as already resolved.
However, the faulty schema is not being added by Rank Math as I’ve previously mentioned.
You can try deleting the code you have shared since it’s not coming from Rank Math, and check if there are any affected functions on your site to verify as well.
Looking forward to helping you.
Thank you.