Keyword

subcategory image size

  • souzana
  • souzana's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #62811 by souzana
subcategory image size was created by souzana
Hello
I want to change the size of the image in the subcategories blocks but the problem is that when I am changing the settings in k2.css (a.subCategoryImage:hover img{…….width:320px;height:170px;}) the image is pixelated.
I’ve already re-upload the image after the changes but still it is pixelated.
Any suggestion?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #62812 by Uldis
Replied by Uldis on topic Re: subcategory image size
There is a category width setting in K2 global settings (Parameters) -> Images.

Please Log in or Create an account to join the conversation.

  • souzana
  • souzana's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago #62813 by souzana
Replied by souzana on topic Re: subcategory image size
The category image width doesn’t affect the size of the image I want. The images I’m talking about are those in the sub category blocks. In the front-end they have the words “children categories” above them.
I came up with a solution. When you upload an image in k2 it is stored in media\k2\categories. I have replaced the images in that folder with images in the dimensions I want and it’s working.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #171077 by Adrian Diehm
Replied by Adrian Diehm on topic Re: subcategory image size
I was looking for a solution to this as well. What I ended up doing was to set the Global parameters for Category Image to the larger size I wanted in the sub category eg 360px and then added the following css entry into my template to reduce the image size in the Category Description.

.itemListCategory img {width:125px !important;}

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum