Skip to main content
Solved

Use images with liquid? Is it possible?

  • 31 March 2023
  • 1 reply
  • 642 views

I tried with an image block and placing the liquid code in the url bar such as {{customer.company_logo}}, when i try to save that it seems to be stripping out the code and doesnt save it.

 

Also I tried to do it with custom html in this way “<img src=”customer.company_logo”>, this just display the tiny icon that shows when an image doesnt exist.

 

I am 100% sure that the attribute is only containing the image url, so this is not the issue. 

 

Please help.

Best answer by Felix

Hey Fkkm,

in order for an dynamic image url to work, you have to activate “Dynamic image”. You can place there your Liquid code. Make also sure to upload and select a fallback image, in case the image url is not given:

In your custom html, you forgot to add the mustaches in order to indicate that you are referring to liquid code. Try <img src=”{{customer.company_logo}}”>

 

Hope that helps,

Felix 😉

View original
Did this topic help you find an answer to your question?

1 reply

Felix
  • Novice
  • 211 replies
  • Answer
  • March 31, 2023

Hey Fkkm,

in order for an dynamic image url to work, you have to activate “Dynamic image”. You can place there your Liquid code. Make also sure to upload and select a fallback image, in case the image url is not given:

In your custom html, you forgot to add the mustaches in order to indicate that you are referring to liquid code. Try <img src=”{{customer.company_logo}}”>

 

Hope that helps,

Felix 😉


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings