[Support request] Schema.org tailoring in templates

Home Forums Support [Support request] Schema.org tailoring in templates

Home Forums Support Schema.org tailoring in templates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246188
    Julien

    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

    #246313
    Tom
    Lead Developer
    Lead Developer

    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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.