[Resolved] Can't delete Schema Markups

Home Forums Support [Resolved] Can't delete Schema Markups

Home Forums Support Can't delete Schema Markups

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #941110
    Jacob

    Hi, I have tried to disable the schema markup that is default in the Theme with this code:

    add_filter( ‘generate_header_microdata’, ‘__return_empty_string’ );
    add_filter( ‘generate_sidebar_microdata’, ‘__return_empty_string’ );

    Since I am not a Techie I have tried two different plugins where I can add PHP Code (without having to do actual changes in the Theme code).
    However, it does not work. I can still find the schemas in through the Structured Data Testing Tool –

    What is the problem?

    #941134
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this instead:

    add_filter( 'generate_schema_type', '__return_false' );

    #941174
    Jacob

    Thanks Tom! It works! You made my day (night I guess). Thanks!

    /Jacob

    #941176
    Jacob

    HI again Tom. Actually I can see that the Schema is still on some of the pages for some weird reason.. Not all of them disappeared..

    #942037
    Tom
    Lead Developer
    Lead Developer

    Any examples? Which pages?

    #942223
    Jacob

    Thanks Tom.
    Really weird now when I look it’s gone. Must have been some cache-thing. Thanks and sorry for bothering.

    I have actually one more question – That is not related..

    Is there a function within the theme to put a banner with a link in the top of the page? Or is it better to do that with a plugin?

    Thanks again, Jacob

    #942360
    Tom
    Lead Developer
    Lead Developer
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.