Tagged: category page, masonry
-
AuthorPosts
-
September 25, 2018 at 10:10 am #1014084
Hi,
I have created a portfolio page with a masonry, and everything works fine as you can see in the following link. All the thumbnails look the same and we are able to see the entire dressDifferent is when you go inside a single category page where images are cropped and some of them (random) are taller
https://www.pennyblackragusa.it/portfolio_voci/gonne/How can I fix the masonry in the category page in order to look like the main page I showed you?
Thanks for your reply
September 26, 2018 at 5:28 am #1014530Hey emanuelecocchiaro,
Thank you for using Enfold.
You need to adjust the thumbnail size for the archive pages. Please edit the archives.php file, look for this code around line 56:
'class' => 'avia-builder-el-no-sibling'
Below, add these codes:
'preview_mode' => 'custom', 'image_size' => 'full',
Default “image_size” value is set to “portfolio”, which has a dimension of 495x400px.
Best regards,
IsmaelSeptember 26, 2018 at 9:27 am #1014602Hi, thanks for your reply, it was very clear. Unfortunately it didn’t solve the problem, actually nothing changed at all. Would you mind give a look please?
September 26, 2018 at 9:38 am #1014612Hi,
I fixed it for you – I had to modify the enfold/taxonomy-portfolio_entries.php template and replaced:
$grid = new avia_post_grid(array( 'linking' => '', 'columns' => '3', 'contents' => 'title', 'sort' => 'no', 'paginate' => 'yes', 'set_breadcrumb' => false, ));
with
$grid = new avia_post_grid(array( 'linking' => '', 'columns' => '3', 'contents' => 'title', 'sort' => 'no', 'preview_mode' => 'custom', 'image_size' => 'full', 'paginate' => 'yes', 'set_breadcrumb' => false, ));
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.