Shopify themes, liquid, logos, and UX
Hi There,
I'm trying to create the look of the image attached of 'Photos from our Community...' However, I can't seem to get it to work. There are metafields already setup as Community Photos 1,2 3,4, 5 etc. But the images aren't pulling through to show live on our website. Is someone able to tell me what I'm doing wrong?
Hello @ONYXLights
Thank you for submitting your query to the Shopify community. I’d be happy to assist you. Could you please provide the store URL and password (if it’s password-protected) so I can review and get back to you with an update?
HI Devcoders, thanks for getting back to me. This is my stores website... https://onyxlights.com.au/
But I don't have that section/function visible yet, so not see anything.. but this is a competitors site that I've seen it look the best, just scroll right down the bottom... https://www.stedi.com.au/type-x-led-driving-lights-builder.html
Let me know how I can incorporate this into my site please. Thank you!!
Hey @ONYXLights,
Hope you're doing fantastic 😄
Let me help you troubleshoot the community photos display issue. Looking at your screenshot, I notice a few potential issues:
{% for i in (1..7) %} {% assign photo_field = 'community_photo_' | append: i %} {% if product.metafields.custom[photo_field] %} <img src="{{ product.metafields.custom[photo_field] | img_url: 'large' }}" alt="Community Photo {{ i }}"> {% endif %} {% endfor %}
Hope this helps. Let me know if you've any more questions for me, or if you'd want us to implement this for you(Just email us!).
Thanks,
Shubham | Untechnickle
Helping for free: hello@untechnickle.com
Don't forget to say thanks, it'll make my day - just send me an email!
Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App
Thank you! But where do I past that code??? Which section etc.?
Hello... Can you help me please? Where do I paste that code??? Which section in the code do I put it etc.?
By the looks of it, you already setup your own metafields. There are two approaches that you can use for this.
1. Using Shopify Theme's Image section
This method helps you choose which metafield do you want to add into that component.
2. Build your own Image Section
You can add this code if you want to build your own custom image section
<div class="your class">
<div class="image-1-class">
<img src="{{ product.metafields.your_metafield_namespace.your_metafield_key_1 | img_url: 'large' }}" alt="Photo 1">
</div>
...
...
...
<div class="image-7-class">
<img src="{{ product.metafields.your_metafield_namespace.your_metafield_key_7 | img_url: 'large' }}" alt="Photo 7">
</div>
</div>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025