[Resolved] Remove CreativeWork schema

Home Forums Support [Resolved] Remove CreativeWork schema

Home Forums Support Remove CreativeWork schema

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #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,

    #705243
    Leo
    Staff
    Customer Support

    Hi there,

    Unfortuantely it’s currently not possible to remove them completely:
    https://generatepress.com/forums/topic/delete-or-change-schema/#post-473419

    Let me know if this helps πŸ™‚

    #705415
    Michael

    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?

    #705485
    Preetam

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

    #705486
    Tom
    Lead Developer
    Lead Developer

    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.

    #776711
    Jason

    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

    #776743
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, you can disable the default microdata like this:

    add_filter( 'generate_schema_type', '__return_false' );

    #803263
    Colt

    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

    #803313
    Leo
    Staff
    Customer Support

    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?

    #803331
    Colt

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

    #803340
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1110394
    Prajwal

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

    #1110453
    David
    Staff
    Customer Support

    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.

    #1318265
    Prajwal

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

    #1318504
    Tom
    Lead Developer
    Lead Developer

    Exactly πŸ™‚

Viewing 15 posts - 1 through 15 (of 21 total)
  • The topic ‘Remove CreativeWork schema’ is closed to new replies.