Site logo

Archived topic

Remove CreativeWork schema

20 replies · Started by Michael on October 19, 2018

Viewing posts 1–15 of 21

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,

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?

Hi, I also need to remove the schema completely, please provide a option to disable / enable it.

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.

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

Hi there,

Yes, you can disable the default microdata like this:

add_filter( 'generate_schema_type', '__return_false' );

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,
Colt

Hi there,

I'm using GeneratePress 2.2.2 and just added the code using code snippet without any issues:
https://www.screencast.com/t/qsMDExEYL

It should not have worked in 2.1.

What error are you getting?

I was manually adding it in, but using that plugin worked for me now too. Thanks!

No problem :)

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 ?.

Hi 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.

So how do we disable the CreativeWork schema ?. Do I need to add add_filter( 'generate_schema_type', '__return_false' ); in PHP ?.

Exactly :)

This archived topic is closed to new replies.