- This topic has 8 replies, 3 voices, and was last updated 3 years, 4 months ago by Leo.
September 17, 2019 at 2:13 pm #1011993Anders 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?September 17, 2019 at 8:26 pm #1012176TomLead DeveloperLead Developer
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 🙂September 18, 2019 at 12:16 am #1012234Anders Nielsen
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 🙂September 18, 2019 at 9:27 am #1012786TomLead DeveloperLead 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?September 18, 2019 at 9:46 am #1012800Anders 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)September 18, 2019 at 4:26 pm #1013090TomLead DeveloperLead 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.September 19, 2019 at 6:03 am #1013461Anders 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/#closeSeptember 19, 2019 at 10:40 am #1013842Anders Nielsen
Found the API – Anyone who can help with this?September 19, 2019 at 10:44 am #1013850LeoStaffCustomer Support
Looks like it’s a filter so can be added using one of these methods:
You will need to check with their support for further information though.
- You must be logged in to reply to this topic.