Help Docs Software Kadence Kadence Iconic Kadence Iconic Woothumbs Featured Image Is Displayed Twice In The Kallyas Theme

Featured Image Is Displayed Twice In The Kallyas Theme

By default, the Kallyas theme adds the featured image to the end of the gallery. So when using WooThumbs, it shows up twice. To prevent this, you can add the following function to your child theme’s functions.php file.

/**
 * Remove featured image from gallery.
 */
function iconic_kallyas_remove_thumbnail_from_gallery(){
	remove_filter( 'woocommerce_product_get_gallery_image_ids', 'zn_add_main_image_to_gallery', 10 );
}

add_action( 'init', 'iconic_kallyas_remove_thumbnail_from_gallery' );

Once added, you may need to clear the image cache under WooCommerce > WooThumbs > Clear Image Cache.

Was this article helpful?