-
AuthorPosts
-
May 6, 2022 at 10:05 am #1350776
On my product page, the images are too big and changed settings via customizer does not work.
Additionally, I want to have all pictures in square mode, so if the picture is portrait format it should be provided with a square white background via css.Any ideas how to manage this?
Login credentials and link via private content.
Many thanks in advance!
- This topic was modified 2 years, 6 months ago by donillo.
May 6, 2022 at 2:49 pm #1350806OK, got it.
/*Bildergalerie Hauptbild auf 500px begrenzen*/
#motif_main_image {
object-fit: contain;
width:500px;
height:500px;
background-color: #ffffff;
}
/*unnötiges CSS deaktivieren*/
.single-product-main-image {display: none;}But why do I need to deactivate the style single-product-main-image?
And how can I disable the lightbox functionality?May 7, 2022 at 3:42 pm #1350873Hi,
Thank you for the link to your site, I see that you are using the plugin Motif Product Image Zoom which replaces the standard gallery with a “zoom-gallary” nonetheless, by default the gallery lightbox can be removed by changing the Product gallery to WooCommerce 3.0 product gallery instead of Default enfold product gallery at Enfold Theme Options ▸ Shop Options ▸ Product gallery
Please give this a try.Best regards,
MikeMay 10, 2022 at 9:33 am #1351123Hi Mike,
yes the theme options worked for me.
Second question: I´d want to get the product images in the category view as square too without cropping the images. How can I manage this?
May 10, 2022 at 1:24 pm #1351158Hi,
Glad that this helped, as I pointed out above the zoom-gallary thumbnail container has replaced the standard woo thumbnail container, so while we could try stabbing at it, I would recommend asking the plugin author for their recommended solution as they probably had to correct this for other customers.
I would point out that your images are not square, so while that may look good when it’s the featured image as the thumbnail it’s not square. Also note that the “thumbnail” is actually the full-size image, just shown smaller, so there is not a “cropped” thumbnail.Best regards,
MikeSeptember 21, 2022 at 2:25 pm #1365844Next question regarding the category page:
https://v2.gmc-instruments.it/produkt-kategorie/metrologia-industriale/power-quality/How do I get the images centered in the div container? At the moment the main product image is cropped and it should be minimized in the div container.
September 21, 2022 at 7:19 pm #1365906Hi,
Since your image is a portrait layout and looks like it is twice as tall as it is wide, I believe you will find your best results will be if you make your original image square and then upload it, your new thumbnails will then show the full product. Woocommerce images work better if they are square since the div is also square.Best regards,
MikeSeptember 22, 2022 at 9:18 am #1365936I cannot make the original pictures square, cause we have too much pictures and we use the pictures multiple. It must be possible to use css with object-fit: contain to embed the images appropriately.
- This reply was modified 2 years, 2 months ago by donillo.
September 22, 2022 at 1:08 pm #1365977Hi,
Unfortunately not with your current thumbnails because they are cropped, the thumbnail image you see is the whole image.
Please see the direct image link to the thumbnail below, you will see what I mean.
I don’t see any other solution but to create square new images.Best regards,
MikeSeptember 22, 2022 at 6:16 pm #1366017Ah got it, thats a wordpress feature.
I think the plugin Smamrt Image resize fits my needs: https://wordpress.org/plugins/smart-image-resize/Now I need only to center the image and give the container a white background.
September 22, 2022 at 7:23 pm #1366025September 22, 2022 at 7:31 pm #1366028Yeah perfect! Many thanks!
September 22, 2022 at 7:42 pm #1366034Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Enfold / Woocommerce: square images and image size’ is closed to new replies.