VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: SilverApe on April 26, 2012, 16:30:59 PM

Title: Image on product page is to big
Post by: SilverApe on April 26, 2012, 16:30:59 PM
Hi,

Does anyone know why the image on the product page is so big? (see atachment)
http://d.pr/i/SHSF (http://d.pr/i/SHSF)

Can I change it somewhere? Or am I missing something  ;)

thanks,
Aaron
Title: Re: Image on product page is to big
Post by: marrius on April 26, 2012, 17:46:50 PM
Go to public_html/your_site.com/components/com_virtuemart/assets/css/vmsite-ltr.css

to the line 156 change
.main-image img.product-image,.featured-view .spacer img,.latest-view .spacer img,.topten-view .spacer img{max-width:100%;height:auto;width:auto;}

with

.main-image img.medium-image,.featured-view .spacer img,.latest-view .spacer img,.topten-view .spacer img{max-width:100%;height:auto;width:auto;}

clear cache
Title: Re: Image on product page is to big
Post by: jenkinhill on April 26, 2012, 19:21:30 PM
Alternatively see this:  http://forum.virtuemart.net/index.php?topic=98647.0

More important is to ensure that the uploaded image is no bigger than the maximum size you want to see on the page. The max size will be what is displayed in the facebox popup.
Title: Re: Image on product page is to big
Post by: SilverApe on April 27, 2012, 09:55:37 AM
Hi Marius and Kelvyn,
Thanks for your help.

Marius, I did what your told (was very clear) and it worked.

Kelvyn, I found that post of yours before I posted mine but I did not get it to work. I have a yootheme template and I added it to the custom.css and it did not work. But... now i tried it again while I was typing and it worked! Maybe i did not clear my cache.

thanks again.
Aaron

PS. friendly and fast forum! :D
Title: Re: Image on product page is to big
Post by: raywrio on July 30, 2012, 04:38:54 AM
More important is to ensure that the uploaded image is no bigger than the maximum size you want to see on the page.

But what are the maximum size of images? Where in the manual is this stated. Thanks Ray