- This topic has 15 replies, 5 voices, and was last updated 7 years, 9 months ago by
Pascal.
-
AuthorPosts
-
October 26, 2017 at 2:47 am #410510
Pascal
Hi
I use a plugin for that and I need that GP do not include it’s own schema.
I have read a lot of post about that here, but they are old.
I have also read that in the last version it will be possible to completly remove it, so… how ?
ThanksOctober 26, 2017 at 10:07 am #410782Tom
Lead DeveloperLead DeveloperCurrently it’s only possible to remove it from the body and article elements. In a future version (not the next one, but soon), it will be possible to edit the attributes of every element.
For now, the other topics you found are likely still the answer.
Let me know if you need more info ๐
October 27, 2017 at 6:41 am #411274Pascal
Ok ๐
I have seen 2 methods, which one works please?
#1 if ( ! function_exists( 'generate_body_schema' ) ) : function generate_body_schema() { echo ''; } endif; if ( ! function_exists( 'generate_article_schema' ) ) : function generate_article_schema( $type = 'CreativeWork' ) { echo ''; } endif;#2
add_filter( 'generate_article_schema', 'example_function_name' ); function example_function_name() { return ''; } add_filter( 'generate_body_schema', 'example_function_name2' ); function example_function_name2() { return ''; }October 27, 2017 at 9:22 am #411441Tom
Lead DeveloperLead Developer#2 is the way to go ๐
May 3, 2018 at 5:09 am #566359mirko
How to write the function #2 to remove all the generatepress schema?
For example “creativework” or “wpheader” ?
Thanks!May 3, 2018 at 10:19 am #566649Tom
Lead DeveloperLead DeveloperIt’s not possible right now. However, having that microdata doesn’t harm your site, even if you go with something like JSON-LD instead.
In GP 2.2 we will be introducing an attribute system that will allow us to remove all schema if needed.
May 10, 2018 at 12:27 am #572073Pascal
Hi Tom
GP 2.2 sounds far away as we only are at 2.1.1 ๐
Maybe microdata do not harm our sites, but it’s not clean, and confusing, to have a ton of different entry while using the Google structured data testing tool…
Thanks
May 10, 2018 at 9:09 am #572528Tom
Lead DeveloperLead Developer2.2 is the next feature release. We follow semantic versioning: https://semver.org/
May 10, 2018 at 9:47 pm #572957Pascal
Oh sorry Tom… but itโs a good news ๐
June 20, 2018 at 10:51 pm #604919DIMO Software
Hi
Any news about this 2.2 please ?
I’m using GP 2.1.2 and GP Premium 1.6.2
Thanks
June 21, 2018 at 12:26 am #604957Leo
StaffCustomer SupportIt’s on the way but will be take a bit longer still.
Thanks for your patience ๐
July 3, 2018 at 9:53 pm #614857Pascal
Hello
My first question was on October 26, 2017 and I was hopping to read news about it in the last version GeneratePress 2.1.3, but not… ๐
Thanks
July 4, 2018 at 10:00 am #615368Tom
Lead DeveloperLead DeveloperNot yet, but GP 2.2 will have the new attribute system in place that will make this possible.
July 4, 2018 at 4:33 pm #615694Pascal
Yes Tom I know ๐ the big questions is when…?
ThanksJuly 4, 2018 at 6:42 pm #615737Tom
Lead DeveloperLead DeveloperThere’s no concrete date yet. It will likely be in August sometime.
-
AuthorPosts
- You must be logged in to reply to this topic.