Album thumbnails not loading with AJAX template

Bring Your Business to LifeSupportImage StoreAlbum thumbnails not loading with AJAX template

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54649
    AmplifyMS
    Participant

    Would I be better off creating pages and adding the album shortcode to the specific pages or would this still have the same error when going deeper into galleries?

    #54695
    Xpark Media
    Keymaster

    @AmplifyMS,

    as long as you are using ajax to load the pages you are going to have the same problem. The only way to fix it is to call the image load function after each ajax call.

    the code looks like this: but you can create a new function and then call it every time.

    ( function( $ ) {
    $( 'img[data-ims-src]' )
    .bind( 'scrollin', { distance: 100 }, function( ) {
    var img = this,
    $img = jQuery( img ),
    src = $img.attr( 'data-ims-src' );
    $img.unbind( 'scrollin' ) 
    .hide( )
    .removeAttr( 'data-ims-src' )
    .attr( 'data-ims-loaded', 'true' );
    img.src = src;
    $img.fadeIn( );
    } );
    } )( jQuery );
    
    #54776
    AmplifyMS
    Participant

    Hi,

    Thanks for that. Unfortunately the developer of the theme has come back to me saying he is too busy to provide support. Do you know of anyone I can hire to make these changes for me (I don’t have many contacts).

    Thanks
    Mel

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.