Site logo

Archived topic

WooCommerce main product photo opens in gallery

3 replies · Started by Phil on July 24, 2019

Viewing posts 1–4 of 4

Hi...

I'm hoping you can point me in the right direction. I'm not real technical, but I manage to work my way around WordPress pretty well.

On all my product pages that offer any product option, like color for example... they do not show the main photo larger. Instead, the main photo is small like the rest of the gallery photos. See this page:

https://www.mailboxshoppe.com/product/floral-leaf-cast-mailbox/

On product pages that have no option (just Add to Cart), the main photo is sized larger as it should. See this page:

https://www.mailboxshoppe.com/product/antique-brass-column-mailbox/

What is preventing the photo from opening to it's full 600px size as designated in the Appearance > Customize > WooCommerce > Product Image.

Any help you can offer would be greatly appreciated. This glitch makes my product pages look poorly designed.

Lastly... if I re-load the page with only small images... the re-loaded page will then display the main product image full size.

Help !

Hi there,

Something is setting the height of that element to 0px. It could be a plugin you're using if you want to test that.

You can overwrite it with something like this:

.woocommerce-product-gallery .flex-viewport {
    height: auto !important;
}

Thank you Tom. You. Are. The. Man. ! That css code worked perfectly. Thanks again...

You're welcome :)

This archived topic is closed to new replies.