Tagged: ismael
Hi,
Alright. This feature is going to implemented in the next version of the theme so you won’t be needing the filter anymore.
Best regards,
Ismael
Hello Ismael,
I’ve just updated Enfold to the 4.1.2 version.
I have also deleted from my child theme the code for the Schema you posted.
Now, if you test the product page with the Google Structured Data Testing Tool, you can see there is still an error (see the link in the private content).
It says “is not a known valid target type for the identifier property”.
Thanks for support
Hi,
@blinkerart: Please add this code in the functions.php file.
add_filter('woocommerce_structured_data_product', 'woocommerce_structured_data_product_mod', 10, 2);
function woocommerce_structured_data_product_mod($markup, $product) {
$markup['@id'] = $product->name;
return $markup;
}
Best regards,
Ismael
ok thanks, now I have no errors.
Best regards