Hi @YOyo18 ,
Can you share your store url
To add custom dynamic images that are unique to every product within collapsible rows, you’ll need to make some modifications to your theme’s code. Here’s a general guide on how you can achieve this:
-
Identify the file in your theme where the collapsible rows are defined. This might vary depending on your theme. Look for files like
product-template.liquid
orproduct-grid-item.liquid
. -
Within the file, locate the section or loop where the collapsible rows are generated for each product. It may look something like this:
{% for row in product.collapsible_rows %}
{% endfor %}
- Inside the
for
loop, you can access the currentrow
object and its properties. To add a custom dynamic image, you’ll need to utilize the image URL associated with each row. Assuming the image URL is stored in a property calledimage_url
, you can add an<img>
tag with the appropriatesrc
attribute. Modify the code within thecollapsible-row
div as follows:
{% for row in product.collapsible_rows %}
{% endfor %}
My theme is spotlight and I am not able to find the for loop of collapsible row
I have unlocked the store
Hi,
Do you want to add images in the Nutritional Facts section ?
Yes..