Site logo

[Resolved] Shop Image Size

Home Forums Support [Resolved] Shop Image Size

Home Forums Support Shop Image Size

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #2525350
    metcomllc@aol.com

    All the “shop” images on this site https://www.tryhypnosisnow.com/hypnosis-downloads/view-all-our-downloads/ are the same size. How do I create a standard “shop” image size on this website https://lifechanginghypnosisdownloads.org/shop/

    Appearance > Customize > WooCommerce > Product Images > “Thumbnail width” field does NOT work

    #2525354
    Fernando
    Customer Support

    Hello there,

    Try adding this through Appearance > Customize > Additional CSS:

    .woocommerce-shop.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
        width: 100%;
        object-fit: cover;
    }
    
    @media (max-width: 768px) {
        .woocommerce-shop.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 300px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        .woocommerce-shop.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 400px;
        }
    }
    
    @media (min-width: 1025px) {
        .woocommerce-shop.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 200px;
        }
    }
    

    This should make all images uniform on different views.

    You can alter the heights set in the code if you want.

    #2525359
    metcomllc@aol.com

    That worked. Thank you.

    Can you provide Similar CSS for

    related products picture sizes

    upsell products picture sizes

    cross sell products picture sizes

    category image sizes

    Product image size

    #2525387
    Fernando
    Customer Support

    Can you provide sample links to where I can see these images?

    #2525393
    metcomllc@aol.com
    #2525394
    Fernando
    Customer Support

    Let’s address this last “Product Page – Image at the top”.

    Let’s address the other stuff first.

    Replace the code I provided with this:

    .archive.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
        width: 100%;
        object-fit: cover;
    }
    
    @media (max-width: 768px) {
        .archive.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 300px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        .archive.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 400px;
        }
    }
    
    @media (min-width: 1025px) {
        .archive.woocommerce.woocommerce-page .wc-product-image .inside-wc-product-image img {
            height: 200px;
        }
    }
    
    .single-product.woocommerce .entry-content section:is(.related, .upsells) img{
        width: 100%;
        object-fit: cover;
    }
    
    @media (max-width: 768px) {
        .single-product.woocommerce .entry-content section:is(.related, .upsells) img {
            height: 650px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        .single-product.woocommerce .entry-content section:is(.related, .upsells) img {
            height: 400px;
        }
    }
    
    @media (min-width: 1025px) {
        .single-product.woocommerce .entry-content section:is(.related, .upsells) img {
            height: 400px;
        }
    }
    #2525806
    metcomllc@aol.com

    That did not work

    #2526206
    David
    Staff
    Customer Support

    Hi there,

    this:

    Appearance > Customize > WooCommerce > Product Images > “Thumbnail width”

    Which is a woo option should auto generate the new thumbnail sizes.
    But this will only crop an image if the original image is large enough to do so.

    Can you confirm that is the case ?

    #2526230
    metcomllc@aol.com

    I believe this is what you want to confirm.

    https://postimg.cc/QKg7rWt0

    #2526566
    Fernando
    Customer Support

    Does that option not work as well?

    Can you try removing the CSS first and see if that setting works?

    #2526616
    metcomllc@aol.com

    That option was active,and not working, before I added the CSS.

    #2526620
    Fernando
    Customer Support

    Can you try #1 here to test if anything is causing it not to work?: https://docs.generatepress.com/article/debugging-tips/

    #2527114
    metcomllc@aol.com

    I tried and the issue has not been resolved.

    #2527450
    David
    Staff
    Customer Support

    Is that original product image bigger then the size you have set in the Thumbnail Width ?

    #2527510
    metcomllc@aol.com
Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.