Home Forums WoodMart support forum Remove First Image Gallery

Remove First Image Gallery

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #435784

    Cal.97
    Participant

    Hello, I would like to delete the first image of my photo gallery because it is not the same size as the others.
    I tried to integrate the following code:

    add_filter(‘woocommerce_single_product_image_thumbnail_html’, ‘remove_featured_image’, 10, 2);
    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;
    }

    However the functionality that selects the image corresponding to the variation does not work anymore.

    How can I delete the first image while keeping the function that selects the images according to the variation?

    #435844

    Hello,

    Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope. Hope you can understand our limitations.

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)