New Landing How can we help? Atelier Multi Masonry thumbnail size for products

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #237430
    nielseric
    Member
    Post count: 29

    Hi,

    How can I change the ratio for the Multi Masonry styled products.
    In your Arad demo there are multi masonry products displayed on the homepage. (http://swiftideas.com/arad-demo/)

    I want that same layout but then the aspect ratio of the product images must be 1×1 instead of 4/3.

    Kind regards,
    Niels

    #237567
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Niels,

    If you are looking to change those masonry dimensions, you’d need to edit the file woocommerce/content-product.php, look on line 143:

    		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;
    		}

    Thanks.

    #237570
    nielseric
    Member
    Post count: 29

    It seems like that did the job!
    I guess there’s not so much that can be messed up by changing this, right?

    Can you tell me which part I need to put in my chil theme functions.php, so that I don’t lose this setting at theme update. Or can I copy the entire content-product.php to my child theme folder?

    Thanks for the quick response!
    Niels

    #237576
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please copy the file to your child theme root.

    That will change the image sizes for anywhere you use the Product Masonry image display from the page builder.

    Thanks,
    David.

    #238094
    nielseric
    Member
    Post count: 29

    Thanks, this worked fine!

    #238104
    David Martin – Support
    Moderator
    Post count: 20834

    Great, no problem!

    Thanks
    David.

    #318259
    Carlos
    Member
    Post count: 52

    Hi,

    where is this file in the last version? Should I change this code in each update?

    thanks

    #318269
    David Martin – Support
    Moderator
    Post count: 20834

    The same place, you move the file and replicate the folder structure to within the activated child theme.

    #318276
    Carlos
    Member
    Post count: 52

    Mmm.. I have not this file in woocommerce, I’ve found another in woocommerce/templates/content-product.php but it have not this code

    #318279
    David Martin – Support
    Moderator
    Post count: 20834

    It’s within the /atelier/ theme folder.

    #318283
    Carlos
    Member
    Post count: 52

    sorry I’m searching in other folder 🙂

    solved

    #318285
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Glad it’s sorted.

    -Rui

Viewing 12 posts - 1 through 12 (of 12 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