Remove schema.org on related products
-
woocommerce adds the schema.org informations not only to the product itself, but also on the related products. So you get some errors according to the google schema.org test tool. how can I remove this schema.org informations on related products?
I do not want to remove the schema.org informations in the products, but in the related products. The related products are using price.php and the products itself also. I need to seperate this. But I don’t know how…
this part of the price.php shouln’t load on related products:
<meta itemprop="price" content="<?php echo esc_attr( $product->get_display_price() ); ?>" /> <meta itemprop="priceCurrency" content="<?php echo esc_attr( get_woocommerce_currency() ); ?>" /> <link itemprop="availability" href="https://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove schema.org on related products’ is closed to new replies.