Remove height code on categories listing divs

  • Posts: 42
  • Thank you received: 0
8 years 9 months ago #244917

-- HikaShop version -- : 2.6.3

Hi,

can you please tell me how can I remove the inline height added to the hikashop_subcontainer div on categories listing page?

Where can I find the code?

thanks!

Attachments:

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

  • Posts: 83678
  • Thank you received: 13547
  • MODERATOR
8 years 9 months ago #244926

Hi,

You need to edit the file "listing" of the view "category" via the menu Display>Views and add such code at the top:

<?php $this->params->set('consistencyheight', 0); ?>

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

  • Posts: 42
  • Thank you received: 0
8 years 9 months ago #245103

Hi,

Shouldn't the code above be assigned to a variable, because it doesn't work.

I've removed the code listed in the attached screenshot. Will this be a correct solution?

thanks!

Attachments:
Last edit: 8 years 9 months ago by michaelmyth.

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

  • Posts: 83678
  • Thank you received: 13547
  • MODERATOR
8 years 9 months ago #245105

Hi,

You can also remove that code yes.
You actually have an old version of the view which is why it didn't work.
The code you're talking about is actually like that by default with the latest version of HikaShop:

$attributes = '';
	if($columns>1 && $this->params->get('consistencyheight',1)){
		$attributes .= 'data-consistencyheight=".hikashop_subcontainer"';
	}
	?>
	<div class="hikashop_subcategories" <?php echo $attributes; ?>>

The following user(s) said Thank You: michaelmyth

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

Time to create page: 0.069 seconds
Powered by Kunena Forum