Hello,
We apologize for the issue you are facing with adding the schema code. Here are some steps you can follow to ensure that the JSON-LD code is processed correctly:
-
Navigate to the Schema Generator: Go to your post editing screen and open Rank Math in the Gutenberg sidebar by clicking on the Rank Math SEO icon.
-
Select the Import Tab: In the Schema tab of Rank Math’s meta box, click on Schema Generator and then select the Import tab.
-
Choose JSON-LD/Custom Code: From the drop-down list, select JSON-LD/Custom Code.
-
Enter Your JSON-LD Code: Paste your JSON-LD code into the provided text area.
-
Process the Code: Click on the Process Code button. If nothing happens, please ensure that your code is correctly formatted and does not contain any syntax errors.
-
Check for Errors: If there are still issues, try using a different browser or clearing your browser cache to see if that resolves the problem.
If you continue to experience difficulties, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
Sources:
How to Import JSON-LD Schema Markup With Rank Math » Rank Math
Configuring “Schema Markup” in Rank Math » Rank Math
Hello,
Thank you for reaching out to us.
Please share the custom schema you are trying to import into Rank Math with us here.
You can use a tool like Dropbox or Pastebin to upload the code and share the generated links here.
We look forward to hearing back from you.
Thank you.
Hello,
The Import JSON-LD schema feature is only available using Rank Math PRO, but the account you have used to open this ticket is the Rank Math free version.
Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?
Looking forward to helping you.
Hello,
The “Process Code” button is not responding due to the inclusion of JavaScript-style comments in your JSON-LD code. Specifically, this part:
// Add more offers here (125, 250, 500 teabags) if needed
JSON-LD does not support comments, and having this line will break the code, preventing Rank Math from processing it.
What you should do is to remove the line with the comment and try processing the code again.
Once that is done, it should work as expected.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.