Single Product Thumbnails

Hi,

I want to have more than 3 gallery images below the main Single Product Image, and make them smaller, because they are taking way too much space. Is there any way to have more than 3 columns for that gallery? 

Here's how it looks now: http://pre.swissgo.tech/producto/test-product-copiar/ I'd like the blue one to be on the same line as the others.

I tried resizing the thumbnails via WooCommerce's settings, they're currently at 50x50 px. But that only makes them very pixelated because they are being scaled up to fit de columns anyway. I'm also using the Regenerate Thumbnails Plugin, it does not change the displayed size.

If there is no built-in way to fix this, could you please point me in the right direction in order to modify it through the child theme?

Thank you very much.
Regards,

Mireia

Comments

  • Hi,



    to put 4 images in one column under featured single product image, you need to use the following css:

    .woocommerce .product .product_wrapper .product_image_wrapper .thumbnails .image_frame { width: 23% !important; }
    .woocommerce .product .product_wrapper .product_image_wrapper .thumbnails .image_frame:nth-child(3n) { margin-right: 2% !important; }
    .woocommerce .product .product_wrapper .product_image_wrapper .thumbnails .image_frame:nth-child(4n) { margin-right: 0 !important; }
  • That worked like a charm, thank you!
  • Hi again,

    So, I changed the settings on Product Image to "Use external plugin for featured images" because I'm using a custom function to replace the main image with the thumbnail on click, and it wouldn't work on Default. But now the css you gave me here doesn't work :(

    I assume the name of the classes changed or something, but I can't figure out what it is. Could you help me out, please?

    Thanks in advance.
    Regards,

    Mireia 
  • We have no idea what tools or function you use for popup window but we didn't found anything wrong related to theme on your site. Console it out of any errors and we do not know where you did mistake.

    About the css we gave you above, it does not work because it simply does not exist. You didn't put it on your site.
  • I checked the html output on both versions, the default one and the one with "Use external plugin for featured images". The reason that CSS is not working is because the structure and classes are completely different from one another. 

    Here's a picture demonstrating it:

    image
    I can't find the way to achieve the same effect (to have more than 3 columns) with the structure on the "external plugin" version. Is it even possible? :/

    Thank you very much.
    Regards,

    Mireia
  • We can see what you mean but in our opinion, what you need requires files customization and couldn't be done with some easy css tricks.
  • Ok, I understand. I'll keep looking for a solution myself. 

    Thanks anyway.
    Regards,

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