Site logo

Archived topic

Schema.org tailoring in templates

1 reply · Started by Julien on November 21, 2016

Viewing posts 1–2 of 2

What's the easiest way to tailor the schema.org code in the GP templates?

If I have to manually tweak the code are there any instructions anywhere?
Is it recommended to use a plugin such as All in One SEO pack or any other?
https://semperplugins.com/all-in-one-seo-pack-pro-version/

Thanks for your help

Hi there,

There are two filters you can alter with conditionals:

generate_body_itemtype - default is "WebPage" and "Blog".
generate_article_itemtype - default is "CreativeWork".

Using filters: https://generatepress.com/knowledgebase/filter-list/

Other than that you would need to use custom page templates etc.. to alter/add more.

You can use a plugin like that if you like, but it's definitely not required.

Hope this helps :)

This archived topic is closed to new replies.