Album thumbnails not loading with AJAX template

HomeSupportImage StoreAlbum thumbnails not loading with AJAX template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54648
    AmplifyMS
    Participant

    Hi,

    I am using your plugin on http://joellebeekmanphotography.com and absolutely love it however I wanted to use the album functionality as my client will have multiple galleries under each category. I find once I switch to albums the thumbnail for images and the gallery does not show.

    I have worked out that this is because the theme uses ajax and therefore has a # in the Url so it directs you to http://joellebeekmanphotography.com/#/albums/fashion-2/ for example.

    The thumbnails load when I remove the # from the URL so I could simply set up the categories as URL links in the menu however it still appends the #…… when I go deeper into the gallery.

    Is there code or a setting that I can change so the thumbnails show when the # is included within the url?

    Sorry if that is a little confusing.

    Thank you,
    Mel

    #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 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.