Cargo home Twitter Devlog

Slideshow captions above thumbnails

Last Updated: Feb 28, 2013 06:54PM PST
If you are using slideshow captions and you have your slideshow thumbnails set to display on the bottom, you may want your slideshow captions to sit between the bottom of the main image and the thumbnail area. You can do this with a script in your custom HTML area:
 
 <script type="text/javascript">
$(document).ready(function(){
    if ( Cargo.Config.GetTemplate() =="feed" ) {
        $(document).bind('paginationComplete', function() {
            shiftCaption();
        });
    } else {
        $(document).bind("projectLoadComplete", function(e, pid){
            shiftCaption();
        });
    };
    shiftCaption();
});

function shiftCaption(){
    $('.slideshow_component').each(function(){
        if ( ! $(this).hasClass("formatted") ){
            $('ul.slideshow_thumbs', this ).before( $('.slideshow_caption' , this) );
        }   
    });
}
</script>
tickets@cargocollective.com
http://assets3.desk.com/
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete