Single product image element way to large (woocomerce)

The single product page is very ugly right now due to the way to high product element.

In grid mode the images are to big, is it possible to give the element a fixed height? So it's in line with the content right tot the images.

In thumbnails mode the element is also way to heigh and due to portrait and landscape product photo's the element is resizing al the time. It's giving the page a messy look. The thumbnails underneath the main image also looking very messy, they should be a 1:1 format. How to fix this?

I'm not willing to resize all the images before uploading. So please give me another solution.

I attached screenshots of the grid mode, thumbnail mode and a example of a neath option (other theme).

I tried a lot, please help me to fix this issue.

Best Regards,

Jeffrey


Comments

  • Hello,

    1) Please, try the following CSS code:

    .single-product .flex-viewport,
    .single-product .woocommerce-product-gallery__image img{
       height: 500px!important;
       width: auto!important;
    }
    

    2) Please, go to Appearance -> Customize -> WooCommerc -> Product Images, and change the Thumbnail cropping to 1:1.

    Thanks

  • Hi Phil,

    Thnx for your fast reply. Although it's not the solution i'm looking for.

    Your solution limits the height of the image, witch results in not showing the complete image. The Thumbnails still have different sizes. The settings suggested in your step 2 only affects images in the product category page. My problem is at the single product page.


    Option 1

    Due to the different image sizes i'm looking for a solution that:

    • Fixed size for the product image element (so it is not much bigger than content on the right)
    • Fixed 1:1 ratio Thumbnails (right now it is very messy due to the different image sizes)
    • complete Main image fitted in the border (portrait photo's will have empty space left+right)

    In mine opinion this should be part of the standard functionality...


    Option 2

    I think that the image grid is a nice second option if the element has an option to give it a fixed size. The thumbnails should be automatically cropped in the available space.


    Thnx in advance.

  • You copied the code wrongly.

    Look at the following screenshot:

    About the thumbnails, please send us WordPress dashboard access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.

    Notice!

    Please attach a link to this forum discussion.

    Thanks

  • You are right, i changed the code and the product is resizing like it should.

    I send you login credentials in PM to check the Thumbnails issue.


    Also checked the quick view function. There doesn't work the fix....


  • One of the unsupported plugins causes a problem with the thumbnails.

    I have left only supported plugins active, and the issue was resolved. However, when I activated them back, the thumbnails were still fine.

    For the preview, please try the following code:

    .woocommerce .mfn-popup .slick-slide img{
       height: 500px!important;
       width: auto!important;
    }
    

    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.