• Hi there, using your plugin for my gallery and is amazing!!
    Just a question
    Usually I use this code to avoid the first product image to be the same as the featured image.

    function remove_featured_image($html, $attachment_id ) {
    global $post, $product;
    $featured_image = get_post_thumbnail_id( $post->ID );
    if ( $attachment_id == $featured_image )
    $html = ”;
    return $html;
    }

    add_filter(‘woocommerce_single_product_image_thumbnail_html’, ‘remove_featured_image’, 10, 2);

    Regretfully if I use WooCommerce Gallery is not working…

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘avoid first image’ is closed to new replies.