Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The "alt" field (alternate text) of the "img" tag is designed to replace the image in cases the picture cannot be seen and only in this case. But, in Flex Slider, its content appears along with the picture, as the content of "title" does (except that the content of "title" appears in bold).
Comment | File | Size | Author |
---|---|---|---|
#2 | flexslider-container.tpl_.php_.txt | 578 bytes | Fiable.biz |
title_and_alt.jpg | 23.96 KB | Fiable.biz |
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedThat shouldn't be an issue with 2.x
If you feel like rolling a patch for 1.x I'd be glad to fix it. But for the moment it's a lower priority issue. But you are most certainly correct, the alt text shouldn't be rendered as part of the caption.
Comment #2
Fiable.biz CreditAttribution: Fiable.biz commentedI just deleted one line in flexslider-container.tpl.php . Here you are:
Comment #3
Vincent_Jo CreditAttribution: Vincent_Jo commentedHi,
this patch (#2) works for me.
The alt-text isn´t displayed any more along with the image-title.
Thanks for that.
Actually I´ve been looking for a way to add custom captions on an image field flexslider.
Any chance?
regards
Vincent
Comment #4
jenlamptonI think the status on this one should be "Needs review" as it doesn't look like this patch has been committed to any other branch.
Comment #6
minorOffense CreditAttribution: minorOffense commentedI've fixed the 1.x version of the module but it doesn't appear to be a problem in 2.x since you aren't limited to images in 2.x of flexslider.