Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
This is an expected behaviour from our plugin. If a page doesn’t have a schema assigned to it or at least the default schema, the basic schemas, such as the WebPage will not be generated.
You need to have a dedicated schema like the Article schea assigned to your page so Rank Math will generate all the necessary global schemas.
Don’t hesitate to get in touch with us if you have any other questions.
Hi,
Thank you for your response.
The problem with that is that my pages are not articles, so I don’t want to assign them the Article schema in order to get the WebPage schema. Some pages of my website are Services, some other are articles… This is why I cannot set a common schema for all my pages.
Despite this I would like to add the WebPage schema because all of my pages are ‘webpages’, but maybe this is not possible, right?
Thank you
Hello,
The webPage schema will also be added to your pages with the Service schema type applied.
However, if you still want to add that schema to your pages without a dedicated schema, then you may need to use and customize this filter to achieve that:
https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data
Looking forward to helping 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.