Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to output file (image) alt form Files in Shopify #1690

Open
kwella opened this issue Feb 22, 2023 · 0 comments
Open

How to output file (image) alt form Files in Shopify #1690

kwella opened this issue Feb 22, 2023 · 0 comments

Comments

@kwella
Copy link

kwella commented Feb 22, 2023

Hello
Im looking for the possibility to output image_alt for the image uploaded into Files
I do have incremental loop to output custom images and everything works like a charm
I added text alt to the images in Files, but have to idea hot to display it as a text under the images
Images are there - please see come

{% for i in (1..51) %}
{% capture code_img %}{{ handle }}_{{ i }}.jpg{% endcapture %}
{% assign mod = forloop.index | modulo: 37 %}

{%- liquid
case mod
xxxxxx all my cases here within layout
endcase
%}

{{ code_img | file_url | img_tag }} ////////Thats where I need to output img_alt somehow as a variable something like {{ code_img.alt}}???
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant