Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Product image alt doesn't show on hover

Contributor ,
Nov 25, 2013 Nov 25, 2013

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

TOPICS
Content management and modules
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 26, 2013 Nov 26, 2013

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.

Translate
LEGEND ,
Nov 25, 2013 Nov 25, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 25, 2013 Nov 25, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 25, 2013 Nov 25, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 26, 2013 Nov 26, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2013 Nov 26, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 27, 2013 Nov 27, 2013

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" />

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 29, 2013 Nov 29, 2013
LATEST

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines