Tagged: x
-
AuthorPosts
-
October 21, 2016 at 12:33 pm #1225680
pixelboss1ParticipantGreetings from Pixel Boss stock photography!
We are a stock photography site using WooCommerce. We currently use product pages to display our images.
We are having some trouble getting our product galleries to display thumbnails in masonry format. When a vertical image appears in the thumbnail gallery, tends to consume the entire row, leaving vast amounts of empty space.
I have included a screen shot to help illustrate this issue. Any help would be most appreciated. Many thanks!
October 21, 2016 at 12:34 pm #1225685
pixelboss1ParticipantThis reply has been marked as private.October 21, 2016 at 9:32 pm #1226191
Rue NelModeratorHello There,
Thanks for writing in! As of this time as I was checking your site, it appears that it is down.

Please ask assistance from your hosting provider.
Thank you.
October 23, 2016 at 10:34 am #1227316
pixelboss1ParticipantThis reply has been marked as private.October 23, 2016 at 11:59 am #1227379
RupokMemberHi there,
Thanks for writing back. It seems up on my end. However it seems you are using some really long image that’s creating the inconsistency – http://prntscr.com/cxy211
Note that the masonry library working as expected and let’s try similar ratio for the images. They are not required to be the same ratio but don’t use something too different like the long image.
Thanks!
October 27, 2016 at 4:03 pm #1233784
pixelboss1ParticipantThis reply has been marked as private.October 27, 2016 at 11:55 pm #1234249
RadModeratorHi there,
It’s never a feature or product layout (masonry). But you can implement it through this code. Please add this code to Admin > Appearance > Customizer > Custom > Javascript
jQuery(document).ready(function($) { var $container = $('.archive.tax-product_cat .products'); $container.before('<span id="x-isotope-loading"><span>'); $(window).load(function() { $container.isotope({ itemSelector : '.archive.tax-product_cat .products > li', resizable : true, filter : '*', containerStyle : { overflow : 'hidden', position : 'relative' } }); $('#x-isotope-loading').stop(true,true).fadeOut(300); $('#x-iso-container > .hentry').each(function(i) { $(this).delay(i * 150).animate({'opacity' : 1}, 500); }); $(window).trigger('resize'); }); $(window).smartresize(function() { $container.isotope({ }); }); });Then this CSS too,
.archive.tax-product_cat li.product { margin: 0 2% 4.5% 0; } .archive.tax-product_cat ul.products { width: 105.5%; margin-right: -4.5%; }Hope this helps.
November 1, 2016 at 9:38 am #1239211
pixelboss1ParticipantThis reply has been marked as private.November 1, 2016 at 9:13 pm #1240145
LelyModeratorHi There,
Upon checking, the code you have copied is incomplete. This will result to error. See attached screenshot and compared it to the previous suggestion. If you scroll down, there’s still some code below this part:
position : 'relative' } });November 2, 2016 at 10:06 am #1240861
pixelboss1ParticipantGentlemen, I have to tell you, that worked out perfectly! You guys are so great! Thanks for all your help. Keep up the good work!
Cheers,
Lewis
November 2, 2016 at 3:59 pm #1241418
FriechModeratorHi Lewis,
We’re delighted to assist you with this and thank you for the kinds words.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1225680 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
