Bring Your Business to Life › Support › Image Store › Album thumbnails not loading with AJAX template
Tagged: ajax, album, gallery, redirection, Thumbnails, url
- AuthorPosts
- August 14, 2013 at 3:40 pm #54648AmplifyMSParticipant
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,
MelAugust 14, 2013 at 3:42 pm #54649AmplifyMSParticipantWould 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?
August 17, 2013 at 7:57 pm #54695Xpark MediaKeymasteras 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 );
August 26, 2013 at 4:58 pm #54776AmplifyMSParticipantHi,
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 - AuthorPosts
- You must be logged in to reply to this topic.