Skip to content

🎁 BFCM is live! Save up to 30% on EComposer and unlock a free Feature Pack. Explore deals

🎁 The4 BFCM: 15% off Athora & Vetro + free homepage setup & 6 months of EComposer Standard free. See the deal

4.93,472 reviews on the Shopify App Store Install free New to Shopify?Open your store

Show Image metafield in EComposer

Please follow this article to learn what is metafield and how to create it first, then follow the steps below to display the Image from metafield to your page in EComposer:

Step 1: For example, I created a metafield with the “Image (File)” type to be able to upload the image.

Show Image metafield in EComposer — Overview (Screenshot 1)

Step 2: Open your Product in the Shopify admin to add the image to the metafield.

Show Image metafield in EComposer — Overview (Screenshot 2)

Step 3: Open the EComposer page editor to add a Metafield element to your page.

Show Image metafield in EComposer — Overview (Screenshot 3)

On the Content tab -> Metafield Source, choose Select from list, then scroll down to find and select the metafield you just created:

Show Image metafield in EComposer — Overview (Screenshot 4)

The image metafield will be shown directly in the EComposer’s editor to let you view and edit the style of it.

Or choose Custom Liquid in the Metafield Source, and use the code below (replace the orange code with your metafield) for further customization.

This code is for the “One file” metafield type:

{{ product.metafields.custom.image.value  | img_url: '500x' | img_tag }}
Show Image metafield in EComposer — Overview (Screenshot 5)

Please use the code below for the List of files type:

{% assign datas = product.metafields.custom.ecomposer_image.value %}
{% for data in datas %}
{{data | image_url: width: '500x' | image_tag}}
{% endfor %}

Last updated

Was this page helpful?