- This topic has 20 replies, 5 voices, and was last updated 11 months, 2 weeks ago by
Leo.
-
AuthorPosts
-
October 19, 2018 at 1:08 am #704815
Michael
Hi, I want to remove the CreativeWork schema that gets added on all posts and pages.
Do you have a php snippet I can add into child theme or code snippets plugin to do that?
thanks,
GeneratePress 2.1.4GP Premium 1.7.2October 19, 2018 at 9:36 am #705243Leo
StaffCustomer SupportHi there,
Unfortuantely it’s currently not possible to remove them completely:
https://generatepress.com/forums/topic/delete-or-change-schema/#post-473419Let me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 19, 2018 at 2:08 pm #705415Michael
Hi Leo,
Thanks, that linked suggestion is ok to change the type but then I would have to go and add the required elements of the new schema type by JSON-LD anyway. It would be preferable just to remove the “CreativeWork” schema that GP adds and then me add complete code for the schema needed with Json-ld.
On that thread Tom mentioned back in January that the schema removal functionality is on the way, any idea on ETA?
October 19, 2018 at 4:45 pm #705485Preetam
Hi, I also need to remove the schema completely, please provide a option to disable / enable it.
October 19, 2018 at 4:49 pm #705486Tom
Lead DeveloperLead DeveloperGP 2.2 will introduce JSON-LD which can be turned off in the Customizer.
2.2 will be available for public testing within a couple weeks.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 8, 2019 at 4:44 pm #776711Jason
Tom,
Hello. Has this issue been addressed? I am looking all around in the customizer but don’t see a way to disable the schema. I checked the version and it looks like I am using 2.2.1.
Thanks,
Jason
January 8, 2019 at 5:33 pm #776743Tom
Lead DeveloperLead DeveloperHi there,
Yes, you can disable the default microdata like this:
add_filter( 'generate_schema_type', '__return_false' );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 6, 2019 at 10:33 am #803263Colt
Hi Tom,
This code no longer works in GP version 2.2 Did you add another way to disable this?
It was working in 2.1 for me perfectly, but now just throws a PHP error (same code placement).
Thanks,
ColtFebruary 6, 2019 at 11:26 am #803313Leo
StaffCustomer SupportHi there,
I’m using GeneratePress 2.2.2 and just added the code using code snippet without any issues:
https://www.screencast.com/t/qsMDExEYLIt should not have worked in 2.1.
What error are you getting?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 6, 2019 at 11:45 am #803331Colt
I was manually adding it in, but using that plugin worked for me now too. Thanks!
February 6, 2019 at 11:54 am #803340Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 21, 2019 at 4:12 am #1110394Prajwal
Hi Tom,
You mentioned that “GP 2.2 will introduce JSON-LD which can be turned off in the Customizer. 2.2 will be available for public testing within a couple weeks.” Has this been added to any of the recent releases ?.
December 21, 2019 at 5:56 am #1110453David
StaffCustomer SupportHi there
JSON-LD was removed from the update and there isn’t a definite plan to add it back in at this time. Mainly because popular SEO plugins added this feature.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 7, 2020 at 11:29 am #1318265Prajwal
So how do we disable the CreativeWork schema ?. Do I need to add add_filter( ‘generate_schema_type’, ‘__return_false’ ); in PHP ?.
June 7, 2020 at 5:41 pm #1318504Tom
Lead DeveloperLead DeveloperExactly π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- The topic ‘Remove CreativeWork schema’ is closed to new replies.