- Posts: 214
- Thank you received: 1
Editing the Hikashop Filter
First thing, If you look at my site craftkeg.com/ and open up Search Products.
See the problem I'm having is with the filter as one coloum, it was abit longer then I'd like and would push the page down. So I tried putting it into 2 colums and it gives the effect you can see now, which is obviously not right!
Is it possible somehow to get it to look like..
Filter 1
Filter 2 | Filter 3
Filter 4
Any help would be appreciated.
Please Log in or Create an account to join the conversation.
Well, you can simply edit your filters and set the wished number of column taken by the filter (with the option "number of columns').
So in this case you will have:
Filter 1: 2 columns
Filter 2 & 3 : 1 columns
Filter 4: 2 columns
Please Log in or Create an account to join the conversation.
I'd also like to maybe bring the Filter button up a little to save some space, is that kept in the css somewhere?
Please Log in or Create an account to join the conversation.
Just set a height of 50px for your price filter's option.
Please Log in or Create an account to join the conversation.
The other thing that would make it look really nice is having some padding between the check boxes and the text, I tried adding #filter_Brewers_hikashop_category_information_menu_128[] option{
padding:2px;
}
which you recommended before to add to the front end CSS, but that doesn't appear to have done the trick.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
something like this should work:
.hikashop_filter_ABV input{
margin-right:5px,
}
you can also try by adding !important between the ";"
Please Log in or Create an account to join the conversation.
Would I be able to do something similar if I wanted to add some padding underneath the filter titles so they're not so close to the boxes?
Please Log in or Create an account to join the conversation.
It's quite easy since you just have to take a look at the html code, spot the class you want to edit and add your css.
You will then be able to do these simple modifications by yourself
Please Log in or Create an account to join the conversation.
Something that is a little bit more tricky though. When you open the Search Products box everything looks fine until you do a search, then the Search box shrinks in size (on my browser it's about level with the 'Brewers' text.)
It's only a cosmetic thing, but do you have any idea why that is?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
.hikashop_filter_form_module_117{
min-height:120px!important;
}
.hikashop_filter_title{
padding-bottom:5px!important;
}
the problem I've found though is if I do padding-right:5px or padding-left:5px it works, but it doesn't seem to recognise padding-bottom, is that not correct css?
Please Log in or Create an account to join the conversation.
So the simplest is to add such CSS:
.hikashop_filter_title{
display:block;
}
That will convert the span into a block element and the padding will then properly apply to it.
Please Log in or Create an account to join the conversation.
I did a bit of research and tried that methodl myself, but when I tried
.hikashop_filter_title{
display:block;
}
it pushes the ": 50 - 150" part of the price filter onto the next line, which obviously doesn't look right.
Please Log in or Create an account to join the conversation.
.hikashop_filter_Price_____ .hikashop_filter_title{
float:left;
}
so that the price title is forced to float on the left and thus the rest doesn't go onto the next line.
Please Log in or Create an account to join the conversation.