Keyword

class "itemContainerLast" problem

  • giacomo chiari
  • giacomo chiari's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 months ago #66558 by giacomo chiari
class "itemContainerLast" problem was created by giacomo chiari
hi;
I have a number of products placed on a list with 3 columns like this:
File Attachment:

well, k2 rightly assigns the class ".itemContainerLast" only to the third product of the row.

the problem arises when I only have 2 products like this:

File Attachment:

and k2 assigns the class ".itemContainerLast" everywhere in the row nullifying the margin included in the class "itemContainer".

there is a way tu solve the problem???

sorry for my "google english" :lol:
I don't know if I got it across...

thanks :)

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

  • giacomo chiari
  • giacomo chiari's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 months ago #66559 by giacomo chiari
Replied by giacomo chiari on topic Re: class "itemContainerLast" problem
I solved it by replacing, in category.php, this:
<?php
			if( (($key+1)%($this->params->get('num_leading_columns'))==0) || count($this->leading)<$this->params->get('num_leading_columns') )
				$lastContainer= ' itemContainerLast';
			else
				$lastContainer='';
			?>
with this:
<?php
			if( (($key+1)%($this->params->get('num_leading_columns'))==0) )
				$lastContainer= ' itemContainerLast';
			else
				$lastContainer='';
			?>
regards :)

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


Powered by Kunena Forum