• Resolved yavuzc

    (@yavuzc)


    I see two product schemas when I test our site, one is missing fields (not yours). I tried adding this to functions.php as advised in another thread but did not work with WC 4.3.0. Is there something else I can do to remove the redundant schema with missing fields?

    /* Remove the default WooCommerce 3 JSON/LD structured data */
    function remove_output_structured_data() {
    remove_action( ‘wp_footer’, array( WC()->structured_data, ‘output_structured_data’ ), 10 ); // This removes structured data from all frontend pages
    remove_action( ‘woocommerce_email_order_details’, array( WC()->structured_data, ‘output_email_structured_data’ ), 30 ); // This removes structured data from all Emails sent by WooCommerce
    }
    add_action( ‘init’, ‘remove_output_structured_data’ );

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Woocommerce Product Schema’ is closed to new replies.