Skip to main content

Minimise Filter Box?

12 years 9 months ago #142595 by Lexnia
Minimise Filter Box? was created by Lexnia
Hi,

I want to make the filtering box hidden until someone clicks on a button that says 'Show Filter Options' (that will be shown on the top-left side above the box) and then for it to be hidden again when clicking on a button that says 'Hide'.

Here is what I have so far: s293983206.websitehome.co.uk/elevatefile...281%29/women-s-shoes

Can anyone advise me on how to minimise the box in this way?

Thanks in advance

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

12 years 9 months ago - 12 years 9 months ago #142625 by Eliot
Replied by Eliot on topic Minimise Filter Box?
Hi there,

It will require some php and Js skills to do that.
Basically what you have to do is to add a "Show" button in the filter view (in Display>Views, search for filter and put the button wherever you want). Then add the parameter onclick for this button with something like this:
Code:
onclick="document.getElementById('hikashop_filter_main_div').style.display = 'none';"

This will just hide the filter area when you click the button. It has to be improved a bit to show/hide but it's a good start :)
Last edit: 12 years 9 months ago by Eliot.

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

12 years 9 months ago - 12 years 9 months ago #142626 by Mohamed Thelji
Replied by Mohamed Thelji on topic Minimise Filter Box?

EDIT
The JavaScript code that Eliot gave you will probably help you to do that :).
Last edit: 12 years 9 months ago by Mohamed Thelji.

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

12 years 9 months ago #142694 by Lexnia
Replied by Lexnia on topic Minimise Filter Box?
Ok thank you :-)

I'll try that.

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

Time to create page: 0.049 seconds
Powered by Kunena Forum