• Resolved Gio

    (@giothelawa)


    Can I remove the default WooCommerce JSON/LD structured data for product taxonomies (Categories, Tags)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Sol J. a11n

    (@solstudioim)

    Hi there @giothelawa

    Thanks for your question!

    Can I remove the default WooCommerce JSON/LD structured data for product taxonomies (Categories, Tags)?

    To remove JSON/LD data from the frontend of your site add this snippet code:

    add_action( 'init', 'my_remove_json_ld_frontend' );
    function my_remove_json_ld_frontend() {
        remove_action( 'wp_footer', array( WC()->structured_data, 'output_structured_data' ), 10 );
    }

    You can add it to your functions.php or using Snippet plugin.

    I hope that helps!

    Plugin Support abwaita a11n

    (@abwaita)

    Hi,
    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above snippet was helpful!

    If you have further questions, please feel free to open a new topic.

    Thanks.

    Thread Starter Gio

    (@giothelawa)

    Thanks a ton!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove the default WooCommerce JSON/LD structured data for a taxonomies?’ is closed to new replies.