[Support request] WebPage – schema data

Home Forums Support [Support request] WebPage – schema data

Home Forums Support WebPage – schema data

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1011993
    Anders Nielsen

    I have yoast SEO plugin installed.

    it creates a schema: WebPage

    The type “WebPage” is also created by generatepress.

    Can I use a filter: https://docs.generatepress.com/article/generate_body_itemtype/

    Or any other function, to add the generatepress WebPage “text” into the yoast SEO plugin WebPage schema data?

    #1012176
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    If you’re using the Yoast schema, then you’ll want to disable the GP schema, which you can do with this filter:

    add_filter( 'generate_schema_type', '__return_false' );

    Let me know if you need more info πŸ™‚

    #1012234
    Anders Nielsen

    Hi Tom

    I don’t wan’t to disable the generatepress Schema – it’s great!

    But I wan’t to add it into the WebPage schema generated by yoast..

    So I get all the “text attributes” under the the yoast WebPage schema.

    That would make a killer SEO setup πŸ™‚

    #1012786
    Tom
    Lead Developer
    Lead Developer

    Yoast should get all the same schema that GeneratePress marks up by default – there shouldn’t be anything additional you have to do. Which text attributes are missing?

    #1012800
    Anders Nielsen

    all the “text” schema is missing on the yoast schema data.

    There are two “#webpage”, https://search.google.com/structured-data/testing-tool

    but only one containing all the text schema (generatepress’s schema)

    #1013090
    Tom
    Lead Developer
    Lead Developer

    Ah, I see. I’m not sure if it’s possible to merge the two, unfortunately, as we use microdata and they use JSON+LD. You might be able to contact Yoast to see if there’s a way to hook into their output to add the text items. I did some searching through their documentation but couldn’t find anything.

    #1013461
    Anders Nielsen

    ok, I had hope’ed it was possible πŸ™‚

    A plugin, like the little amp/menu plugin would be cool. (that creates the merge)

    Btw.. just for info: https://www.searchenginejournal.com/google-structured-data-preference/297479/#close

    #1013842
    Anders Nielsen

    Found the API – Anyone who can help with this?

    https://developer.yoast.com/features/schema/api/#add-or-remove-graph-pieces

    #1013850
    Leo
    Staff
    Customer Support

    Looks like it’s a filter so can be added using one of these methods:
    PHP: https://docs.generatepress.com/article/adding-php/

    You will need to check with their support for further information though.

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