Site logo

[Resolved] Remove Schema hatom and hcard

Home Forums Support [Resolved] Remove Schema hatom and hcard

Home Forums Support Remove Schema hatom and hcard

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2477825
    Ivaylo

    Hi,
    I’ve already used this filter:
    add_filter( ‘generate_schema_type’, ‘__return_false’ );

    but hatom and hcard are still there. I’m using the latest updates of GP and GP Premium.

    How to remove the above two?

    Thanks!

    #2477837
    Ivaylo

    Sent 2 examples

    #2477908
    David
    Staff
    Customer Support

    Hi there,

    that function removes the schema that the Theme adds to the theme elements, i checked your site and that has worked, but it will not remove schema that is added by other plugins or code.

    #2477911
    Ivaylo

    I have added this one too:
    add_filter( ‘generate_is_using_hatom’, ‘__return_false’ );

    and it looks like hatom is gone. Can I apply the same for hcard?

    #2477974
    Ivaylo

    I applied the same and looks like hcard is also gone. Is it OK to leave those in functions.php? It won’t break anything else?

    #2478112
    David
    Staff
    Customer Support

    It should not effect anything else. So you can leave them in the functions.php

    #2478113
    Ivaylo

    Thanks!

    #2478116
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.