Shopify Variant Image Management: How to Add, Delete, & Hide Your Images
Master Shopify variant image management with our guide on how to add, delete, and change images based on product variants.
Updated November 24, 2025

Running a Shopify store means you know how important it is to have plenty of high-quality product images that showcase your merchandise in the best possible light. And if you're offering products with multiple variations (like different colors or sizes), you'll need variant images to give your customers the full scope.
But if you want to create a top-notch customer experience in your store, you've got to make sure your product variant images are efficiently managed. Sure, Shopify does optimize your images, but knowing how to add, delete, or hide your Shopify variant images yourself can take your store to the next level.
» Learn effective management strategies to boost your bottom line
1. How to Add Variant Images in Shopify
Variant images help customers visualize exactly what they're buying by showing different colors, styles, or angles of your products. When a customer selects a variant (like "Red" or "Large"), the product image automatically updates to match their selection.
Here's how to add images to your product variants:
Step 1: Navigate to Your Products
Log in to your Shopify admin and click on Products in the left sidebar. Find and click on the product you want to add variant images to.
Step 2: Locate the Variants Section
Scroll down to the Variants section on the product details page. You'll see a list of all your product variants (like different sizes, colors, or styles).
Step 3: Click the Image Icon
Next to each variant, you'll see a small image icon (it looks like a picture frame or camera). Click the image icon next to the variant you want to add an image to.
Step 4: Select or Upload an Image
A pop-up window will appear with three options:
- Select from existing images.
- Choose from images you've already uploaded to this product.
- Generate variant images with sidekick (AI).
Add files and then Generate image
Click Add files if you're uploading a new photo, then select the file from your device.
Click Generate image if you want AI to generate an image for you.
Or simply click on an existing product image to assign it to this variant.
Step 5: Confirm and Save
Click Done to confirm your image selection. Click Save at the top right of the product page to finalize your changes.
The variant image is now assigned. When customers select this variant on your store, they'll see the corresponding image.
» Want a different look for your product images? Learn how to change their size in Shopify
Adding Images to Multiple Variants at Once (Bulk Method)
If you need to add images to several variants quickly, use this bulk method:
Step 1: In the Variants section, check the boxes next to the variants you want to add images to.
Step 2: Click the three-dot menu (...) at the top of the Variants section.
Step 3: Select Add images (or Edit images if replacing existing ones)
Step 4: Choose images from your existing uploads or click Add image to upload new ones
Step 5: Click Done, then Save
This saves time when managing products with many variants!
Important Notes
- One image per variant: Each variant can only have one assigned image.
- Images must be uploaded first: You can only assign images that are already in the product's media gallery.
- Supported formats: JPG, PNG, GIF, and WEBP files up to 20MB.
- Automatic display: When customers select a variant, the image updates automatically on your product page.
» Need to know the limits? Find out what's the maximum image size you can upload to Shopify
2. How to Delete Variant Images in Shopify
Sometimes, you may need to delete variant images in your Shopify store, especially if they're outdated or the product variant is sold out.
Step 1: Go to Your Product
From your Shopify admin, click on Products in the left sidebar. Click on the product that contains the variant image you want to remove.
Step 2: Access the Variants Section
Scroll down to the Variants section on the product details page. You'll see all your product variants listed with their assigned images (if any).
Step 3: Select the Variant
For a single variant:
Click the image icon next to the variant you want to edit.
In the pop-up, you'll see the currently assigned image.
Uncheck the image to unassign it.
Step 4: Click Done, then Save
For multiple variants (bulk method):
Step 1: Check the boxes next to the variants you want to remove images from
Step 2: Click the three-dot menu (...) at the top of the Variants section
Step 3: Select Remove images - immediately removes your selected images.
Step 4: Click Save
What happens after you remove a variant image?
- The variant no longer has an assigned image.
- When customers select this variant, they'll see the default product image instead.
- The image file remains in your product's media gallery (it's not deleted from your store).
- You can reassign the image later if needed.
If you want to permanently delete the image file itself (not just remove it from a variant):
Head over to the Content > Files in your Shopify admin side panel.
Look for the variant images you want to delete permanently.
Check the boxes of all the variant images you want to delete.
To delete, click Delete file in the top-right area.
5. In the pop-up menu, confirm the deletion by clicking the Delete button.
» Back up your visuals before you delete them. Follow these simple steps to download all your product images from Shopify
3. How to Hide Variant Images in Shopify
Instead of permanently deleting your variant images, there may be cases when you just want to stop displaying them for a while, like when a particular product variant is currently out of stock. This can also make your product page less cluttered and help customers focus on the specific variant they're interested in.
Hiding Specific Variant Images Using Custom CSS (Online Store 2.0)
If your theme doesn't have a built-in toggle to manage variant media, or you need to permanently hide a specific image from the gallery, you can achieve this with a simple CSS snippet.
Step 1: Locate the Target Media ID
Instead of digging through the Shopify admin URL, we can find the exact ID directly from the live storefront using your browser's developer tools.
1. Open your live product page in a new tab.
2. Right-click the exact image you want to hide from the gallery and select Inspect (or Inspect Element).
3. In the developer tools panel, look at the HTML code wrapping the image (this is usually an <li> or <div> tag).
4. Look for the data-media-id attribute. It will look something like this: data-media-id="36584822833351". Just as seen in the screenshot below.
5. Copy that specific number.
Step 2: Add CSS Safely via the Theme Editor
With Online Store 2.0, you no longer need to create separate custom.css files or risk breaking your core theme.liquid file. Shopify now has a built-in, safe way to add global CSS.
1. From your Shopify admin dashboard, navigate to Online Store > Themes.
2. Click the Edit theme button on your current active theme.
3. In the left-hand sidebar of the editor, click the Theme settings icon (it looks like a gear).
4. Scroll to the very bottom of the settings menu and click to expand the Custom CSS tab.
Step 3: Insert the Code
In the Custom CSS text box, paste the following snippet. Be sure to replace the placeholder text with the actual Media ID you copied in Step 1.
CSS
/* Hide specific product media image */ [data-media-id="YOUR_MEDIA_ID_HERE"] { display: none !important; } Example:
If the Media ID you found in Step 1 was 36584822833351, your final code should look exactly like this:
CSS
[data-media-id="36584822833351"] { display: none !important; } |
Step 4: Save and Verify
Hit the Save button in the top right corner of the theme editor. Finally, go back to your live product page and refresh it. The targeted image will now be completely hidden from the media gallery.
» Want to hide the whole product variant instead? Follow these steps
Troubleshooting Shopify Variant Image Not Changing
If your variant image is not changing when a different variant is selected, there are a few potential reasons to consider:
- The variant doesn’t have an image associated with it.
- There’s an issue with your theme’s code.
- There’s a delay in Shopify’s system.
If you've already checked for the first two issues and the problem persists, it may be worth contacting Shopify's support team for further assistance.
Please note: You need different images to accurately represent each variant’s unique features. Troubleshooting variant image issues is important to maintain your store's integrity, ensure customer satisfaction, and support your business's success.
» Try these tips to create a visually compelling, lightning-fast store that converts
Optimize Your Variant Images
While properly managing your variant images is vital for your store's success, this alone is often not enough—you also need to make sure they're well-optimized. By optimizing your images, you can improve page load times and enhance the overall customer experience in your store.
With a solution like the All-In-One Image Master app by Egnition, you can quickly optimize multiple variant images at once to save time and effort. The app's helpful features let you easily compress and resize images, add watermarks, and even convert file formats to ensure your variant images are optimized for the web. Plus, its user-friendly interface makes it easy to navigate even if you're not a tech wizard.
» Learn everything there is to know about this app in the following All-In-One Image Master review
Manage Your Shopify Variant Images Like a Pro
Including Shopify variant images is incredibly important for enhancing customer satisfaction and helping your products appeal to a wider audience. But if you really want to take your variant images to the next level, you've got to pay special attention to optimization. And that's where an app like All-In-One Image Master comes in clutch.
When your variant images are optimized and managed correctly, they'll load faster, look better, and give your customers a clearer picture of what they're buying. And when customers can see exactly what they're getting, they're more likely to make a purchase and come back for more.
» Boost your eCommerce SEO with alt text. Discover how to add alt text to product images in your Shopify store






















