/* Carousel */ .fl-clients-carousel .slick-list.draggable{ padding: 0px 50px 40px !important; } .fl-clients-carousel .image-title { position: absolute; bottom: -40px; text-align: center; width: 92%; z-index: 9; }
//fix to image carousel get title from image alt! checkContainer(); function checkContainer () { if($('.slick-track').is(':visible')){ //if the container is visible on // $('.slick-track .fl-slide .fl-slide-photo-wrap .fl-slide-photo img').each(function(i){ var title = $(this).attr('alt'); var div = $(this).parent(); $('<div class="image-title">' + title + '</div>').appendTo(div); }); } else { setTimeout(checkContainer, 50); //wait 50 ms, then try again } }