• Resolved Blair

    (@cbcbcb)


    Unless it already exists and I haven’t found it, can you consider adding a tickbox to remove Structured Data on AMP?

    We have our own structured data schema running and do not require the Blogposting schema.

    There’s been a new plugin update recently so if anyone else needs this info…
    The workaround for this is to comment out in
    amp/includes/amp-post-template-actions.php

    //add_action( 'amp_post_template_head', 'amp_print_schemaorg_metadata' );
    //add_action( 'amp_post_template_head', 'amp_add_generator_metadata' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • Akki

    (@luckyankit)

    Don’t modify the plugin files as those will get overwritten in next update. Rather add this code to your theme functions.php file:

    add_filter( 'amp_schemaorg_metadata', '__return_empty_array' );

    This will remove the schema from any posts.

    Thread Starter Blair

    (@cbcbcb)

    Thank you

    The snippet on the FAQ page should really be updated with this new filter….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature Request: Tick box turn off Structured Data’ is closed to new replies.