Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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)

    #607553

    Hi 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,
    Andy

    #609087

    Ok, thanks, but where are the masonry gallery settings located for a portfolio category archive?

    #609548

    Hey!

    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!
    Andy

    #610425

    Here you go, Andy:

    #611078

    Hi!

    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!
    Andy

    #612030

    I have updated the theme, and yes, still need help with the same issue. Thanks.

    #612063

    Hi!

    upload the images in question in the exact same size.

    Best regards,
    Andy

    #612344

    Uh. 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.

    #613089

    Hi!

    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,
    Andy

    #613415

    Thanks 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?

    #616026

    Hi!

    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,
    Ismael

    #616742

    I 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?

    #617296

    @journey5956
    Please open a new ticket for this, as it has nothing to do with the thread title.

    Cheers!
    Andy

    #617926

    Excellent – the code for changing the number of portfolio items per page worked. Thanks for your help!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Portfolio Category Display: number of preview images, and their sizes’ is closed to new replies.