---
title: "Solved: Magento 2 Show Double Thumbnail Image When Select Configurable Products"
url: "https://magecomp.com/blog/solved-magento-2-show-double-thumbnail-image-when-select-configurable-products/"
date: "2020-08-31T15:36:48+00:00"
modified: "2025-02-20T06:58:09+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 280
reading_time: "2 min read"
summary: "Hello Magento Pals ?,"
description: "In Magento 2, while selecting configurable product options, the thumbnail shows repetitive images. Find out how you can solve the issue."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Create Custom jQuery Widget in Magento 2?"
    url: "https://magecomp.com/blog/create-custom-jquery-widget-magento-2/"
  - title: "How to Check If Magento 2 is Running In Production Mode?"
    url: "https://magecomp.com/blog/check-magento-2-running-production-mode/"
  - title: "Magento 2: Show Count 0 on Mini Cart when No Product is in Cart"
    url: "https://magecomp.com/blog/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart/"
---

# Solved: Magento 2 Show Double Thumbnail Image When Select Configurable Products

_Published: August 31, 2020_  
_Author: Dhiren Vasoya_  

![Magento 2 Show Double Thumbnail Image When Select Configurable Products](https://magecomp.com/blog/wp-content/uploads/2020/08/Magento-2-Show-Double-Thumbnail-Image-When-Select-Configurable-Products-1024x512.webp)

**Hello Magento Pals ?,**

This technical blog fixes the problem of Show Double Thumbnail Image When Select Configurable Products in Magento 2. Previously I shared [**How to Add Custom Layout Dropdown on CMS Page after Magento 2.3.4**](https://magecomp.com/blog/how-to-add-custom-layout-dropdown-on-cms-page-after-magento-2-3-4/). Let’s look at the issue elaborately and solve it ?
[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-3.webp)](https://magecomp.com/services/hyva-theme-development/)

Magento 2 supports different product types to bifurcate wide range of products accordingly. One of the product types is a configurable product, that provides options like color, size, etc. The options contain separate SKUs. Let us find out the problem with configurable products in Magento 2.
## Problem:
Configurable products are added from the admin panel and the images are allocated to each option. Within the product page in the frontend, it shows thumbnails of different images of the product. But as the other option is selected like color or size, it shows repeated thumbnails. This affects the user experience of your store. Thus, the below-mentioned solution will help to overcome this issue.
## Solved: Magento 2 Show Double Thumbnail Image When Select Configurable Products
**Step 1:** Go to the following path
**app\design\frontend\Themes\Yourtheme\etc\view.xml**

**Step 2:** Find below code
```
<vars module="Magento_ConfigurableProduct">

    <var name="gallery_switch_strategy">prepend</var>

</vars>
```

[![Hire Magento Programmer](https://magecomp.com/blog/wp-content/uploads/2025/02/Hire-Magento-Programmer-CTA-4.webp)](https://magecomp.com/services/hire-magento-programmer/)

Replace it with below code :
```
<vars module="Magento_ConfigurableProduct">

    <var name="gallery_switch_strategy">replace</var>

</vars>
```

That is it.
## Conclusion:
Hence, with the above solution, manage your configurable products’ thumbnails in Magento 2 store. In case of any doubts, you can ask me in the comment part. Also, do share the solution with your Magento friends. See you next time. Until then stay connected for more such solutions.
[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-1.webp)](https://magecomp.com/services/magento-upgrade-services/)

**Happy Fixing ?**


---

_View the original post at: [https://magecomp.com/blog/solved-magento-2-show-double-thumbnail-image-when-select-configurable-products/](https://magecomp.com/blog/solved-magento-2-show-double-thumbnail-image-when-select-configurable-products/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-18 11:32:01 UTC_  
