A space to discuss online store customization, theme development, and Liquid templating.
I want to be able to add images to my header section utilizing the Theme Editor's section settings. Would the best approach be to use section blocks to accomplish this? I plan on looping through the blocks and extract images based on identifying information like an id. Below is what I am trying to accomplish, notice the different images per Navigation (Women, Men).
Solved! Go to the solution
This is an accepted solution.
I found a solution to my question, I used the text input setting as a reference point to render images based on the string value. I was previously using the images.alt value but that kept giving me issues after saving the theme editor.
{% block.settings.text contains link.title %}
// render image
This is an accepted solution.
I found a solution to my question, I used the text input setting as a reference point to render images based on the string value. I was previously using the images.alt value but that kept giving me issues after saving the theme editor.
{% block.settings.text contains link.title %}
// render image