If you are having issues with Gutenberg editor, please simply download official Classic editor plugin.
Haven't found you're looking for? Visit goodstore howto web

Problem with featured image in single product view

  • I de activated the yith magnifier plugin because it was messing up with the thumbnails slider just under the featured image of a product. But then I realised that the featured image you opening up as a single image request with the directory path if the image in the same window rather than inside a prety photo wrapper.

    Inside the woocommerce folder of the theme's woocommerce template overrides this piece of code on the single-product.php:

    echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" rel="prettyPhoto' . $gallery . '">%s</a>', $image_link, $image_title, $image ), $post->ID );
    should have been changed to
    data-rel="prettyPhoto' . $gallery . '">%s</a>', $image_link, $image_title, $image ), $post-&gt;ID );
    Because the rel="[prettyphoto ....]" should have been data-rel="[prettyphoto ...]"




    Just have that in my mind for the next update.

    Thanks in advance
  • All following comments are shown for registered users only!

    (3 more comments)
This discussion has been solved.
All Discussions