Keyword

Category Item image change size

  • Nuno Costa
  • Nuno Costa's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #120440 by Nuno Costa
Category Item image change size was created by Nuno Costa
Hi,

When a new item is published in a category, it will change the size of the images of the items previously published, making them larger.

But it only happens in one column format.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 10 months ago #120441 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category Item image change size
Hello Nuno,

This sounds like a template specific solution. Please use the default template to browse these links. If the issue persists, let me know and post a link so I can see the actual issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Nuno Costa
  • Nuno Costa's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120442 by Nuno Costa
Replied by Nuno Costa on topic Re: Category Item image change size
Hi,

First I'm using a default template override, in which the only modification I made was to fix the button style "Redmore" (category_item.php). Therefore, the files from the default directory are virtually unchanged.

Regarding my problem with images, I tried various combinations of one or more columns and image sizes (xlarge, large, medium, small) and none of the default size was recognized, or more correctly the k2 is not applying the default sizes to the images.

I have my website offline. If you want it you can send a password and user to allow access to your site.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120443 by Yiota
Replied by Yiota on topic Re: Category Item image change size
Hello,

Please if you could provide us access would be most helpful.

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

  • Nuno Costa
  • Nuno Costa's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120444 by Nuno Costa
Replied by Nuno Costa on topic Re: Category Item image change size
I'll ask you a silly question.

I am not able to find the option to send private messages in the forum. How can I send you a private message with the information.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120445 by Yiota
Replied by Yiota on topic Re: Category Item image change size
Yes, I'm afraid that this forum doesn't have PMs. Use the contact form instead.

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

  • Nuno Costa
  • Nuno Costa's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120446 by Nuno Costa
Replied by Nuno Costa on topic Re: Category Item image change size
ok!

I have already submitted the information required through contact form

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120447 by Yiota
Replied by Yiota on topic Re: Category Item image change size
You issue for the image always being as large is the container is this class

body #k2Container.itemListView .itemList #itemListPrimary .catItemImage img

this class has a width:100% !important; if you remove that then your image will be the size you have set up in the K2 parameters of category.

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

  • Nuno Costa
  • Nuno Costa's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120448 by Nuno Costa
Replied by Nuno Costa on topic Re: Category Item image change size
Hi,

I inserted the following code in my template_custom.css file to make the override of thirdpartyk2.css file but is not working.

body #k2Container.itemListView .itemList #itemListPrimary .catItemImage img {
margin: 10px 0 5px 0;
padding: 0;
max-width: 100%;
width: 100%;
border: 1px solid rgba(0,0,0,0.4);
}

I used Chrome to inspect and get the code so I know that removing the !important the override should be working ... can point me what I'm doing wrong.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120449 by Yiota
Replied by Yiota on topic Re: Category Item image change size
Try with width:auto !important;

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


Powered by Kunena Forum