Hi, I’m using the ‘Impulse’ theme. I would like to show the featured image (first image) rather than the image of the first variant when the page is initially loaded. So when the user clicks on the item to get to the product page, main product image to stay until the user selects a variant. Please help.
Topic summary
A user seeks to display the product’s featured image instead of the first variant’s image when a product page initially loads in the Impulse theme.
Initial Solution Provided:
- One contributor suggests modifying the liquid file (typically
product-template.liquid) by replacing:{% assign featured_image = product.selected_or_first_available_variant.featured_image | default: product.featured_image %}- With:
{% assign featured_image = product.featured_image %}
- This solution reportedly worked for some users on earlier Impulse versions.
Ongoing Challenge:
- Multiple users with Impulse 7.1 and 7.2 cannot locate the suggested code in their theme files.
- One user shares their current code snippet, which differs from the original solution, indicating theme structure changes across versions.
- Several follow-up requests remain unanswered, suggesting the original fix may not apply to newer Impulse versions.
Status: Unresolved for Impulse 7.1+ users. The discussion remains open with multiple participants seeking updated guidance for recent theme versions.
Impulse is made by archetypethemes , and is a premium theme meaning most contributors don’t have access to it’s code like they would with a free theme.
Contact archetypethemes to see if they support this customization here https://archetypethemes.co/pages/support
Hi Boram,
You need to change code in liquid file, find liquid file where product information render (mostly used product-template.liquid).
replace the code with:
{% assign featured_image = product.selected_or_first_available_variant.featured_image | default: product.featured_image %}
Try changing it to:
{% assign featured_image = product.featured_image %}
Thank you.
Have a good day:)
Thank you so much.
Always welcome ![]()
This worked! Thank you!
Hey, i have tried to find that code on the impulse 7.1 version and i didnt find it. can you help please?
@ksh_verma Hey! this is the code on Impluse 7.1
i cant find the code u suggested to change. can you please assist?
{%- liquid
assign current_variant = product.selected_or_first_available_variant
unless thumbnail_position
assign thumbnail_position = ‘beside’
endunless
assign product_zoom_size = ‘1800x1800’
assign product_image_size = ‘620x’
case image_container_width
when ‘small’
assign product_image_width = ‘medium-up–two-fifths’
assign product_description_width = ‘medium-up–three-fifths’
assign product_image_size = ‘480x’
when ‘medium’
assign product_image_width = ‘medium-up–one-half’
assign product_description_width = ‘medium-up–one-half’
assign product_image_size = ‘620x’
when ‘large’
assign product_image_width = ‘medium-up–three-fifths’
assign product_description_width = ‘medium-up–two-fifths’
assign product_image_size = ‘740x’
endcase
assign product_img_structure = product.featured_media | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’
-%}
Any chance you can point out the liquid file you modified with this code? Thank you
Hi there, found any solution for this?
Hi,did you find a solution?
Hi! Do you know how to do this on Impulse 7.2? I think that’s the current one. Thank you!!
Hey did you find the solution?
Hey did you figure it out??