Hello,
We apologize for the issue you are facing with rich snippets for your products. To add JSON-LD @id
to the product schema using Rank Math, you can follow these general steps:
-
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.
-
Open the Schema Tab: In the Schema tab of Rank Math’s meta box, click on Schema Generator.
-
Select the Import Tab: Click on the Import tab in the Schema Generator.
-
Choose JSON-LD/Custom Code: Select the JSON-LD/Custom Code option from the drop-down list.
-
Enter Your JSON-LD Code: You can then enter your custom JSON-LD code, including the @id
property. Make sure to format it correctly according to JSON-LD standards.
-
Process the Code: After entering your code, click on the Process Code button to import it into your product schema.
-
Save Changes: Finally, make sure to save your changes to apply the new schema.
For more detailed guidance, you can refer to our documentation on Importing JSON-LD Schema Markup.
If you have any further questions or need assistance with specific code, please feel free to reply to this ticket, and a human agent from our support team will assist you further.
Thank you for raising this concern!
Sources:
How to Import JSON-LD Schema Markup With Rank Math » Rank Math
Hello,
Thank you for contacting support.
The @ID
from our Schema markup cannot be modified because we rely on it inside the plugin source code to associate properties. To tie the review data from that platform you would need to be able to change that value in their output.
If that is not possible, it won’t be possible to integrate both platforms together.
Don’t hesitate to get in touch if you have any other questions.
hello,
I was using this code to make Rank Math and Jude.me compatible.
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
global $post;
$entity['@id'] = get_the_permalink( $post ).'#richSnippet';
if(isset($entity['aggregateRating'])) {
unset($entity['aggregateRating']);
unset($entity['review']);
}
return $entity;
});
Unfortunately it is not working anymore.
Would it be possible for you Miguel to get in touch wiht Judge.me support and help us all who use Rank Math with Judge.me? s******@j*******
The problem is that Judge.me says the problem is rank math and rank math team says the problem is judge.me 🙁
Hello @svenmoller,
We don’t say that the problem is the Judge.me platform, we just stated that we could not change our own IDs as that is used internally by the plugin, and we won’t make changes to it as it would break other functionality of the plugin.
Given that the review platform only generates a single piece of Schema markup, changing the ID there won’t likely cause any issue but it’s not something we can control and we respect their decision to not change that or allow it from their end as we are sure there are valid explanations for that.
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.