How to add some attribute in img?

New Member
4 0 0

I hope someone can help me. How to add nopin = "nopin" after src?

This is my themes code:

 

            <a class="image-link more-info" href="{{ product_url }}">
                {{ product-block.featured_image | product_img_url: product_block_image_size | img_tag: product-block.featured_image.alt }}
                {% include 'product-label' with product-block %}
            </a> 

thank you

0 Likes

Hello 

 <img src="{{ item | img_url: image_size }}" alt="{{ item.title | escape }} nopin="nopin">
Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
1 Like
New Member
4 0 0

Thank you, this is very helpful

0 Likes