-
AuthorPosts
-
April 3, 2016 at 3:15 am #607088
Hello,
Two questions on how portfolio categories are displayed:
1). When I click on a portfolio category, I am getting only 10 preview images (thumbs) per page, before I have to go to the next page. Which is weird, as they are displayed in rows of 3, so there is a gap at the bottom. How can I change them to be 12 images per page?
2). The sizing of preview images / thumbs is all over the place. Some are longer, some are shorter. I would like them to all be the same size, so portfolio category has a uniformed look. Is this possible to adjust? How?
Thank you! (including a link for your reference in the private section)
April 4, 2016 at 1:35 pm #607553Hi stasiamak!
1.) Edit your masonry gallery and in “Image Number” select “12”.
2.) Edit your masonry gallery and in “Size Settings” select “Perfect Grid”.
Regards,
AndyApril 6, 2016 at 6:00 pm #609087Ok, thanks, but where are the masonry gallery settings located for a portfolio category archive?
April 7, 2016 at 12:51 pm #609548Hey!
hm? can you provide us admin access please? so we can take a closer look into the elements in question? post login details here as private reply.
Cheers!
AndyApril 8, 2016 at 10:09 pm #610425Here you go, Andy:
April 11, 2016 at 9:45 am #611078Hi!
You are using an old version of the theme, so please upgrade to Enfold 3.5.1 and let us know if you still need help afterwards.
Cheers!
AndyApril 12, 2016 at 5:08 pm #612030I have updated the theme, and yes, still need help with the same issue. Thanks.
April 12, 2016 at 6:14 pm #612063Hi!
upload the images in question in the exact same size.
Best regards,
AndyApril 13, 2016 at 3:56 am #612344Uh. My portfolio entry images aren’t going to be all exact same size. These are artwork images, and they all have different proportions.
And uploading a whole new library of additional 200+ cropped images JUST to serve as a featured image, so they show up the same size in the portfolio category archives view, seems pretty crazy.Isn’t there an easier way to resolve this (seemingly) simple issue? Is there a code I can input to correct this?
Portfolio category archive view is already automatically trimming each image. Why can’t they all be trimmed to the same size?
If this is possible to achieve in masonry gallery, shouldn’t it be possible here too?Also, please let me know how to change the number of preview images that show up per page.
Thank you.
April 13, 2016 at 6:44 pm #613089Hi!
Wordpress is cropping images by default when uploading them. Use a plugin like this to control this behavior: https://wordpress.org/plugins/simple-image-sizes/
If you still need to do it after you have used the plugin you can check your functions.php, where all image sizes are saved:
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
Adjust it as needed.
Best regards,
AndyApril 14, 2016 at 4:36 am #613415Thanks for that! I’ve installed the plugin and hopefully between that and the code will get it to work, with regards to sizes.
And how do I address the issue of changing the number of images showing per page?
April 18, 2016 at 5:41 am #616026Hi!
Use this to change the number of portfolio items per page:
add_action('pre_get_posts','avf_pre_get_post_portfolio', 50); function avf_pre_get_post_portfolio($query) { if ( is_admin() || ! $query->is_main_query() ) return; if ( is_tax( 'portfolio_entries' ) ) { $query->set( 'posts_per_page', 12 ); return; } }
Regards,
IsmaelApril 18, 2016 at 7:12 pm #616742I would like all the feature images on the blog page to be the same size (254×200) – cropped if necessary. Also, if I try to edit the image, crop is grayed out. What do I need to do?
April 19, 2016 at 11:32 am #617296@journey5956
Please open a new ticket for this, as it has nothing to do with the thread title.Cheers!
AndyApril 20, 2016 at 3:29 am #617926Excellent – the code for changing the number of portfolio items per page worked. Thanks for your help!
-
AuthorPosts
- The topic ‘Portfolio Category Display: number of preview images, and their sizes’ is closed to new replies.