Home Forums Themes Support Claue Problem in product structure

Viewing 2 reply threads
  • Author
    Posts
    • #30226

      I need help to solve Problem in product structure You must specify “offers”, “review” or “aggregateRating” that appears in google search console

    • #30229

      Hi,

      Please add below code to claue-child > functions.php

      /**
       * Remove the generated product schema markup from Product Category and Shop pages.
       */
      function wc_remove_product_schema_product_archive() {
      	remove_action( 'woocommerce_shop_loop', array( WC()->structured_data, 'generate_product_data' ), 10, 0 );
      }
      add_action( 'woocommerce_init', 'wc_remove_product_schema_product_archive' );

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #30325

      thanks, I implement it and I’ll tell you how the search console error goes

Viewing 2 reply threads

You must be logged in to reply to this topic.