- This topic has 8 replies, 3 voices, and was last updated 3 years, 4 months ago by
Leo.
-
AuthorPosts
-
September 17, 2019 at 2:13 pm #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?
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 17, 2019 at 8:26 pm #1012176Tom
Lead DeveloperLead DeveloperHi 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 18, 2019 at 12:16 am #1012234Anders 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 π
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 18, 2019 at 9:27 am #1012786Tom
Lead DeveloperLead DeveloperYoast 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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 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)
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 18, 2019 at 4:26 pm #1013090Tom
Lead DeveloperLead DeveloperAh, 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 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/#close
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 19, 2019 at 10:40 am #1013842Anders Nielsen
Found the API – Anyone who can help with this?
https://developer.yoast.com/features/schema/api/#add-or-remove-graph-pieces
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 19, 2019 at 10:44 am #1013850Leo
StaffCustomer SupportLooks 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.