Forum Replies Created

Viewing 1 replies (of 1 total)
  • @eljefeenterprises and @vanwaik I had the sames issue with the caption. I’m using WP 3.5.2 and WP Nivo Slider 3.1. The problem is that the title returned in the <img> is undefined. I don’t know if that comes from the_post_thumbnail(); function… Anyway I figured out a workaround but probably not very elegant.

    First I’ve downloaded the latest version of jquery.nivo.slider.js (http://dev7studios.com/nivo-slider/) then in wp-nivo-slider.php line 89, instead of calling jquery.nivo.slider.pack.js, I’m calling jquery.nivo.slider.js.

    In jquery.nivo.slider.js I did the following change l. 95, 96. Replace vars.currentImage.attr(‘title’) by $(kids[vars.currentSlide]).attr(‘title’). Basically instead of takink the title of the <img> you’re taking the title of the .

    if($(kids[vars.currentSlide]).attr('title') != '' && $(kids[vars.currentSlide]).attr('title') != undefined){
                    var title = $(kids[vars.currentSlide]).attr('title');

    Hope that helps.

Viewing 1 replies (of 1 total)