• Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22442 - How to hide categories in mobile view?

Hi, when I use my website in mobile mode It shows like this and it’s hard to go down to see products.
Is there a way I can have just a little button that on the press shows all the filters?
Thanks!

Comments

Fred 16 Oct 2021, 11:33

But as I can see you have expanded all filters on category page on mobile devices
Please show me the problem at a screenshot

Francesco Nocerino 16 Oct 2021, 11:51

Yes, as you can see in the screenshot the filters on category are expanded and it’s diffucult to go down to see the producs. I want all the filters to be hided or if we can do like a button.

Attachments:

Schermata 2021-10-15 alle 12.... (146.9 KiB)
Fred 16 Oct 2021, 11:56

You can collapse filters in the Theme Settings https://take.ms/3nJft

Francesco Nocerino 16 Oct 2021, 12:00

I see, but is there a way this function can apply just on mobile?
Thanks

Fred 18 Oct 2021, 11:05

I just make small customization for you, now it works as you need
Updated files are

/www/themes/alysum/templates/catalog/_partials/facets.tpl
/www/modules/pkthemesettings/pkthemesettings.php

Make a copy of those files and keep them as a backup

Francesco Nocerino 18 Oct 2021, 11:57

I don’t see the changes.
Either I choose yes or no in “collapsed filter”, it changes both on mobile and desktop. Am I doing something wrong?

Fred 18 Oct 2021, 12:36

Filters are always collapsed on mobile devices as you asked https://take.ms/mX95WP