News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Image on product page is to big

Started by SilverApe, April 26, 2012, 16:30:59 PM

Previous topic - Next topic

SilverApe

Hi,

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

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

thanks,
Aaron

marrius

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

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

SilverApe

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

raywrio

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