VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: trutdelamode on July 15, 2012, 21:25:08 PM

Title: Images category pages scaled down
Post by: trutdelamode on July 15, 2012, 21:25:08 PM
The images shown on my category pages are teeny tiny...........I've set the thumbnails-width to 160px, which seems to be working (the info says 160px x 106px) but they're scaled down a second time to 70px × 47px. Adjusting the width of the mainpart of the template enlarges them, but only to a certain extend. Is there a way to fix this, because looking at the pages I'd say that images about twice that tiny size would still fit.
Title: Re: Images category pages scaled down
Post by: PRO on July 15, 2012, 21:32:09 PM
its the html/css surrounding it

http://forum.virtuemart.net/index.php?topic=102850.0
Title: Re: Images category pages scaled down
Post by: trutdelamode on July 15, 2012, 21:55:21 PM
I figured the CSS was the problem, but I've checked all the files that came with the template and I've changed all the margins, borders, widths, heights and paddings that looked like they could have been the problem, but nothing :(

I've got 2 VM related CSS files, one basically called virtuemart and one called VM_categories, but I can't seem to locate the corresponding coding in either of them
Title: Re: Images category pages scaled down
Post by: PRO on July 16, 2012, 20:34:01 PM
do a template override
http://forum.virtuemart.net/index.php?topic=90935.0

Also look here
http://forum.virtuemart.net/index.php?topic=97744.0

You are going to have to change

views/category/tmpl/default.php

THE image div class.

Its probably set to
width30   which means its 30% of the width of the container.

Just change the name of the class.

or you could do
width100

Title: Re: Images category pages scaled down
Post by: trutdelamode on July 16, 2012, 21:10:26 PM
Thank you :D I tried finding that image div class before, but I wasn't able to find it. Because of your comment I tried again, failed, and just did a Ctrl+F on div class, trying to find something with a width......I ended up changing every single hit I got one by one and after a few tries I found it :D It isn't called image, I guess that's why I wasn't able to find it before, but it was a 'basic' div class under show products.