Tagged: 

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • #818520

    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

    #828920

    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

    #829918

    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

    #833880

    ok thanks, now I have no errors.
    Best regards

    #834132

    Hi,

    Great! Let us know if you need anything else.

    Best regards,
    Ismael

Viewing 5 posts - 31 through 35 (of 35 total)
  • The topic ‘application/ld+json not present in WooCommerce Product built with Layout Builder’ is closed to new replies.