[Resolved] GP theme schema

Home Forums Support [Resolved] GP theme schema

Home Forums Support GP theme schema

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2322648
    George

    A client of mine asked me about this article since he’s been using Yoast:
    https://blogaid.net/tips-tuesday-google-helpful-content-update-ga4-mini-course-indexnow-shopify-collabs/

    Under the “Disable Theme Schema Markup – New Tutorial in DIY SEO” heading.

    Can you advise?

    Noticed this one here:
    https://generatepress.com/forums/topic/schema-question-3/#post-1189765

    Should I disable the theme schema?

    #2322887
    Tom
    Lead Developer
    Lead Developer

    Hey George,

    If you’re using another method to provide schema it is a good idea to disable the theme schema.

    You can do so with a simple filter for now: add_filter( 'generate_schema_type', '__return_false' );

    #2322976
    George

    Hi Tom. Does it make sense to leave some of the theme schema in tact, like the schema added to the menus, header, etc? And if yes, is there a way to exclude some from removal?

    #2323994
    Tom
    Lead Developer
    Lead Developer

    I don’t think there’s much benefit there – it’s likely better to just go with the JSON-LD solution. Most browsers are smart enough these days to understand where the header and navigation area are without basic microdata telling them.

    #2324980
    George

    Ok, thanks Tom.

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