Why are images not loading on my store's homepage?

Topic summary

Main issue: An image on a Shopify store’s homepage appeared as a broken link when using a Liquid snippet.

  • Context: The code assigned a full CDN URL to a Liquid variable (image_path) and then used it in .
  • Cause: The asset_url filter is intended for theme asset filenames stored in Shopify, not for full external URLs. Applying it to a complete CDN link breaks the source path.
  • Fix: Remove the asset_url filter and reference the variable directly, e.g., <img src=“{{ image_path }}” …>.
  • Notes: The code snippet is central to the issue and resolution.
  • Outcome: After removing the filter, the image loaded correctly.
  • Status: Resolved; no further actions requested.
Summarized with AI on January 8. AI used: gpt-5.

Hello,

I’m trying to add the following liquid code snipped to the home page of my store but for some reason the image is not loading and it just looks like a broken tag.

{% assign image_path = ‘https://cdn.shopify.com/s/files/1/0678/7688/0626/files/flowers-tendril-ornament-monogram-vintage-love-mug.png?v=1705364578’ %}

Image

Does anyone know what could be the reason or can someone help me.

Thank you!

Hi @mariela-magallo

This is Richard from PageFly - Shopify Page Builder App

You just need to simply remove the assets url filter then its work properly for you, Correct one is :


The reason because, assets_url is the filter for you to get directly from the Shopify Assets, but your source image is having from Liquid variable.

Hope this can help you solve the issue

Best regards,

Richard | PageFly

Thank you,
it works now!

glad that i can help