Copy link to clipboard
Copied
Hi
On this page
http://www.stsstone.com.au/products
When hovering above an image thumbnail the alt attribute text doesn't show. why?
Thanks
Micha
Not really correct, no.
If you use the _path of the image and also use the product url tag ...{tag_itemurl_nolink} You can form your own link wrapped in the prdouct and use say the product title or name tags for the title etc.
Copy link to clipboard
Copied
Hi Micha,
By default BC does not add an alt on product images.
You have to use _path version of the tag and form your own image attribute html.
Copy link to clipboard
Copied
Thanks Liam
If you look at the source code the alt info is there it just doesn't show on hover. A bit bad in terms of accesability.
Copy link to clipboard
Copied
Oh, just looked.
Becauese you wrapped it in an anchor and the title takes over in the HTML structure. Because you do not have a title on your anchor then nothing shows.
Copy link to clipboard
Copied
Thanks Liam,
Makes sense but this is a catalogue set by BC module so I don't have an option to insert alt or title attributes. seems like a bad design or may be there is something I can do.
Cheers
Copy link to clipboard
Copied
Not really correct, no.
If you use the _path of the image and also use the product url tag ...{tag_itemurl_nolink} You can form your own link wrapped in the prdouct and use say the product title or name tags for the title etc.
Copy link to clipboard
Copied
Hi,
thats because you are after the "title" attribute
<img src="path.to.image.jpg" alt="this shows for screen readers" title="yellow box that displays on hover" />
Copy link to clipboard
Copied
Thanks Liam,
Got it! I did something like this.
<div class="product-image">
<a href="{tag_itemurl_withhost} " title="{tag_name_nolink} ">{tag_smallimage_nolink} </a>
</div>
Find more inspiration, events, and resources on the new Adobe Community
Explore Now