woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.91k stars 1.69k forks source link

thumbCaptions setting creates invalid html #1810

Closed mattdyer closed 2 months ago

mattdyer commented 2 years ago

There is a thumbCaptions setting that, if set to true, looks for a data-thumbcaption attribute on the slides and uses that to add a caption to each thumbnail. This only activates if controlNav is set to "thumbnails". When it adds the caption, it appends a span to the img elements that are the thumbnails. Img elements can't contain other elements, so the captions never display.