- Posts: 42
- Thank you received: 0
Remove height code on categories listing divs
- michaelmyth
-
Topic Author
- Offline
Less
More
10 years 2 months ago #244917
by michaelmyth
Remove height code on categories listing divs was created 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!
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.
10 years 2 months ago #244926
by nicolas
Replied by nicolas on topic Remove height code on categories listing divs
Hi,
You need to edit the file "listing" of the view "category" via the menu Display>Views and add such code at the top:
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.
- michaelmyth
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 0
10 years 2 months ago - 10 years 2 months ago #245103
by michaelmyth
Replied by michaelmyth on topic Remove height code on categories listing divs
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!
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.
10 years 2 months ago #245105
by nicolas
Replied by nicolas on topic Remove height code on categories listing divs
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:
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