Skip to main content

Remove height code on categories listing divs

More
10 years 2 months ago #244917 by michaelmyth
-- 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!

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

More
10 years 2 months ago #244926 by nicolas
Hi,

You need to edit the file "listing" of the view "category" via the menu Display>Views and add such code at the top:
Code:
<?php $this->params->set('consistencyheight', 0); ?>

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

More
10 years 2 months ago - 10 years 2 months ago #245103 by michaelmyth
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!
Last edit: 10 years 2 months ago by michaelmyth.

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

More
10 years 2 months ago #245105 by nicolas
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:
Code:
$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.163 seconds
Powered by Kunena Forum