Support » Theme: Astra » Woocommerce single product page schema

  • Resolved Ivan Lutrov


    When on a Woocommerce product page, the HTML body “itemtype” attribute shows Shouldn’t it say

    This is handled by the astra_schema_body() function, which I know applies a astra_schema_body_itemtype filter but I’m thinking it should be handled automatically, perhaps by adding something like this:

    $itemtype = (is_product()) ? 'Product' : $itemtype;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @ivanlutrov,

    Thank you for the suggestion. Actually, WooCommerce itself adds the Product schema in JSON-LD format hence adding Product schema from Astra will be incorrect.

    In the next version of the Astra theme, we will be removing this schema from body tag on WooCommerce templates.

    Ok, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce single product page schema’ is closed to new replies.