Skip to main content

Editing the Hikashop Filter

13 years 3 months ago #116982 by matps
Hi There,

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.

13 years 3 months ago #117000 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
Hi there,

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
The following user(s) said Thank You: matps

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

13 years 3 months ago #117005 by matps
Replied by matps on topic Editing the Hikashop Filter
That's fantastic Eliot, your answer worked a treat!

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.

13 years 3 months ago #117007 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
Really easy as well :).
Just set a height of 50px for your price filter's option.
The following user(s) said Thank You: matps

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

13 years 3 months ago #117022 by matps
Replied by matps on topic Editing the Hikashop Filter
Excellent, it's looking really good now!

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.

13 years 3 months ago #117028 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
Try this, it should work everywhere on the site:
Code:
.hikashop_filter_module input[type=checkbox]{ margin-right:5px, }

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

13 years 3 months ago #117032 by matps
Replied by matps on topic Editing the Hikashop Filter
That doesn't seem to have worked I'm afraid. It's definitely frontend_custom.css I should be looking at?

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

13 years 3 months ago #117035 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
In this case you can try with the class .hikashop_filter_ABV and .hikashop_filter_Type (so you need two css rule).
something like this should work:

.hikashop_filter_ABV input{
margin-right:5px,
}

you can also try by adding !important between the ";"
The following user(s) said Thank You: matps

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

13 years 3 months ago #117038 by matps
Replied by matps on topic Editing the Hikashop Filter
That's worked perfectly now, cheers Eliot!

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.

13 years 3 months ago #117041 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
Since I can't write your whole css i would suggest you to take a look at our documentation: www.hikashop.com/support/faq.html#styl

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 :) (and adapt the code I gave you to your new filters ;))

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

13 years 3 months ago #117042 by matps
Replied by matps on topic Editing the Hikashop Filter
Yes that's true, I really shouldn't be relying on you for stuff I can learn myself!

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.

13 years 3 months ago #117051 by Eliot
Replied by Eliot on topic Editing the Hikashop Filter
I don't really know what's causing this but forcing a height: 320px; on the id module_117 should fix it (even if it's not a perfect solution)

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

13 years 3 months ago #117054 by matps
Replied by matps on topic Editing the Hikashop Filter
And is that in the options somewhere, or does that need to be done in the CSS as well?

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

13 years 3 months ago #117276 by matps
Replied by matps on topic Editing the Hikashop Filter
So I've come up with

.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.

13 years 3 months ago #117514 by nicolas
Replied by nicolas on topic Editing the Hikashop Filter
hikashop_filter_title is a span not a div. Spans are inline elements while divs are block elements. inline elements can't have a padding.
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.

13 years 3 months ago #117521 by matps
Replied by matps on topic Editing the Hikashop Filter
Hi Nicolas, thanks for getting back to me.

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.

13 years 3 months ago #117580 by nicolas
Replied by nicolas on topic Editing the Hikashop Filter
In that case you could add:
.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.

Time to create page: 0.099 seconds
Powered by Kunena Forum