Liquid, JavaScript, themes, sales channels
Hi, I want to add titles for my product images (and logo), however, I am struggling to find where these images are. I believe I searched through all of my files through filtering by my alt text to find the right snippet of code, however, I found nothing. Is the alt-text displayed differently, and if so, how would I be able to locate it in my files, so I could add titles? My website is uvteeth.com. Thank you so much for the help.
you want add alt text for all the product images?
like this
Hi
try this
Add this js in theme.js
$(window).on('load',function(){
$.each($('.template-page .main-content img'),function(i,v){
var img_alt=$(this).attr('alt');
$(this).attr('title',img_alt);
})
})
Sadly did not work, still showed as missing a title.
It will work check your images src code!
Isn't seeming to work:
Go to layout > theme.liquid file. https://i.imgur.com/WoxteCQ.png
Hope it helps!
It is a requirement that requires a lot of changes. With next and pre you can use code: collection.previous_product and collection.next_product
And this only works when you click the product from the collection page, otherwise you need to customize the code.I recommend hiring a professional, it will change a lot.
With the app review move, you can send the code product-template.liquid file. I will check it.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024