Nivo-Gallery
Nivo-Gallery copied to clipboard
li tags inside html slides don't work
Hi!
When you define a HTML slide with li tags in it, the li items will be considered new slides. This is wrong, the selector should only select the first li childs of the ul as slides.
Example:
<li data-type="html">
<h1>Some HTML here - works fine</h1>
</li>
<li data-type="html">
<h1>Some HTML here - works fine</h1>
<ul><li>list item inside a slide, doesn't work</li></ul>
</li>
HTH, Alex
Have the same issue.
To solve it change:
global.slides = $element.find('ul li').remove();
to
global.slides = $('>ul >li', $element).remove();