Support » Theme: Astra » Woocommerce single product page schema

  • Resolved Ivan Lutrov

    (@ivanlutrov)


    When on a Woocommerce product page, the HTML body “itemtype” attribute shows https://schema.org/Blog. Shouldn’t it say https://schema.org/Product?

    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)
  • You must be logged in to reply to this topic.