New Landing How can we help? Atelier Masonry Thumbnail Sizes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #229210
    Benjaminbradleycreative
    Member
    Post count: 3

    Hi,

    We are using a slightly different ratio (4×5) for our shop images. I wondering how I can update the “tall” masonry thumbnail size to reflect this 4×5 ratio.

    Thanks,

    Benjamin

    #229253
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Go to atelier/woocommerce/content-product.php and find this section on line 138:

    // Width, Height parameters
    	if ( $sf_product_multimasonry ) {
    
    		$masonry_thumb_size = sf_get_post_meta( get_the_ID(), 'sf_masonry_thumb_size', true );
    
    		if ( $masonry_thumb_size == "large" ) {
    		    $classes[] = 'col-sm-6 size-large';
    		    $width = 'col-sm-6';
    		    $thumb_width = 800;
    		    $thumb_height = 650;
    		} else if ( $masonry_thumb_size == "tall" ) {
    		    $classes[] = 'col-sm-3 size-tall';
    		    $width = 'col-sm-3';
    		    $thumb_width = 400;
    		    $thumb_height = 800;
    		} else {
    			$classes[] = 'col-sm-3 size-standard';
    			$width = 'col-sm-3';
    			$thumb_width = 400;
    			$thumb_height = 320;
    		}

    – Kyle

    #229509
    Benjaminbradleycreative
    Member
    Post count: 3

    Hi Kyle,

    Thank you! Have it working.

    Cheers

    #229545
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register