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

Images category pages scaled down

Started by trutdelamode, July 15, 2012, 21:25:08 PM

Previous topic - Next topic

trutdelamode

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.

PRO


trutdelamode

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

PRO

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


trutdelamode

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.