Hi, is there any way to configure the masonry to display always squares (ratio)? My images (featured) are all squared but some are bigger than others (i’m updating the images to bigger sizes).
How do i achieve this? I tried several configurations in the Masonry and also tried adding new image size in the functions.php file:
$avia_config['imgSize']['portfolio'] = array('width'=>400, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>260 ); // images for portfolio 4 columns
Is there an easy way?
Thanks
Hey helderluis,
The masonry element is using the isotope script which calculates the position of the masonry items dynamically. I’m afraid, it’s not possible to change the width or the height of the thumbnail to make it look like a square without breaking the script. The width and height of the masonry items will depend on the number of columns and the current width of the main container.
Best regards,
Victoria