Minimise Filter Box?

  • Posts: 52
  • Thank you received: 2
10 years 9 months ago #142595

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.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142625

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:

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: 10 years 9 months ago by Eliot.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #142626


EDIT
The JavaScript code that Eliot gave you will probably help you to do that :).

Last edit: 10 years 9 months ago by Mohamed Thelji.

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

  • Posts: 52
  • Thank you received: 2
10 years 9 months ago #142694

Ok thank you :-)

I'll try that.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum