alt attribute on product page not showing

treppy76
New Member
1 0 0

Hi everyone,

On my site when on the product page I am not able to add the alt attribute to the image, I add it but when I inspect the page it doesn't shows up.

 

Can anyone help me?

My code below:

 

<div class="fotorama paira-single-product-image" data-nav="thumbs">
                                    {% if product.images.size > 0 %}
                                    {% for image in product.images %}
                                  <a src="{{ image | product_img_url: 'original' }}" class="paira-product-image img-responsive"><div><img src="{{ image | product_img_url: 'original' }}" alt = "This is a new product" data-zoom-image="{{ image | product_img_url: 'original' }}" id="paira-product-zoom"></div></a>
                                  {% endfor %}
                                    {% else %}
                                    {{ 'product-1' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
                                    {% endif %}
                                </div>
 
 

 

0 Likes
LitExtension
Shopify Partner
629 65 115

Hi @treppy76

Your snippet still working normally on my theme. You can check on this screenshot: https://prnt.sc/12fhso7

If you can not find that problem, you can add me as a staff and I'll check it for you (my email: jones.evan137@gmail.com)

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes