Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
You can use this filter to extend the JSON Schema:
https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data
Alternatively, please follow this tutorial if you are not good with coding:
https://elizabethfreemanweb.com/how-to-add-google-structured-data-to-wordpress-menus/
Here’s how you can add filters/hooks to your WordPress website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Just add this code and SiteNavigationElement will appear
/**
* Collect data to output in JSON-LD.
*
* @param array $unsigned An array of data to output in json-ld.
* @param JsonLD $unsigned JsonLD instance.
*/
add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
return [];
}, 99, 2);
or add some code?
Hello,
The snippet is general code to modify the schema on your website. If you are unfamiliar with applying/modifying custom code snippets, you may need the help of a third-party developer to do it for you.
Hope that helps. Please let us know if you have questions.
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.