k2 image category listing and item: how to change size?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Feb 25, 2014 6:01 pm
Reply with quote
Report this post
Hi,
despite we have set the k2 item image size in category listing and in item view to small (and we have set 'small' to be 220px), the site is still showing us a huge image.
Can u please tell us how to fix it?
thx a lot

http://editionsafrique.com/editions.html
http://editionsafrique.com/editions/aut ... sophe.html
User avatar
Senior Boarder

GK User
Tue Feb 25, 2014 6:46 pm
Reply with quote
Report this post
Hello,

In this template images are always stretched to 100% width.
User avatar
Administrator

GK User
Tue Feb 25, 2014 6:47 pm
Reply with quote
Report this post
Hello,
thanks for your reply.
Could you tell me where to reduce this stretch please? It would very important to me.
thx again

dziudek wrote:Hello,

In this template images are always stretched to 100% width.
User avatar
Senior Boarder

GK User
Tue Feb 25, 2014 6:57 pm
Reply with quote
Report this post
Please add the following code at the end of css/k2.css file:

Code: Select all
body .itemImageBlock img {
margin: 0 auto!important;
width: auto!important;
}
User avatar
Administrator

GK User
Tue Feb 25, 2014 7:02 pm
Reply with quote
Report this post
Perfect. Thanks a lot.
User avatar
Senior Boarder

GK User
Wed Mar 05, 2014 1:41 pm
Reply with quote
Report this post
Dear Sirs,
we are now trying on a different website, and apparently the problem is still there. We need to reduce the huge size of the images in K2 items and items category listings.
We have tried to add the code below, but still the problem is there. In K2 config we have set image size to be 2oo px, but system is not respecting this.

CODE: SELECT ALL
body .itemImageBlock img {
margin: 0 auto!important;
width: auto!important;
}

Could you give us any further support?
thanks a lot

http://editionsmimesis.fr/catalogue/liv ... 14-atelier
User avatar
Senior Boarder

GK User
Thu Mar 06, 2014 7:24 am
Reply with quote
Report this post
Most probably you did something wrong - I've added the mentioned code at the end of your k2.css file using Chrome Developer Tools and it is working fine for me.
User avatar
Administrator


cron