- This topic has 9 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 28, 2023 at 11:34 am #2512293
roadlink
Hi there,
I have too many filters (attribute) in sidebar. It works great on desktop.
But when visit website via mobile these filters go bottom of the page.I can have same filters on off canvas menu but it will mean that double content and extra load to page.
What I want to have is have 2 buttons on top of the products.
1. Filter
2. SortWhen user click filter, sidebar will be opened kind of pop up.
I will put 2 links, They do exactly what I want. believe me this is one of the most important feature for woocommerce themes.
Do you have any suggestion to do this?
PS : This plugin does the similar job with adding an image right-bottom of the page. https://wordpress.org/plugins/responsive-sidebar/
January 28, 2023 at 12:28 pm #2512321Leo
StaffCustomer SupportHi there,
The two plugins suggested by another user in a topic that you found would likely still be the best option for now:
https://generatepress.com/forums/topic/how-to-make-collapsible-sidebar-on-mobile/#post-1666410We’ve received your feature request in Github and will definitely consider it when we do another WooCommerce update again.
January 29, 2023 at 6:39 am #2512905roadlink
Hi Leo,
Yes, this one does the job but dead since 2 years.
Probably will not get any update in future.
So I find risky to use it.Other one is not OK.
January 29, 2023 at 6:50 am #2512913David
StaffCustomer SupportHi there,
there is a method i used here, that a) moves the left sidebar to the top of the page on mobile and b) adds a CSS toggle to open and close it:
https://generatepress.com/forums/topic/left-sidebar-on-top-and-as-button-on-mobile/#post-2417916
January 29, 2023 at 7:06 am #2512935roadlink
Hi David,
It is almost 90% hit. Thanks 🙂What I would ask;
1. Is it possible to show sidebar on 80% of screen.
2. Is it possible to add X on top to close sidebar. Lile off canvas menu.
3. Close sidebar when click the rest 20% of screen. https://stackoverflow.com/questions/152975/how-do-i-detect-a-click-outside-an-elementJanuary 30, 2023 at 3:00 am #2513846David
StaffCustomer Support2. You could include the icon in the
labelHTML.1. and 3. not really, as it would require a modal/canvas element to achieve those affects.
This is just a simple pure CSS method 🙂
January 30, 2023 at 1:04 pm #2514656roadlink
Hi David,
Clear now, thanks for details.
I can include icon in here.
<input type="checkbox" id="side-toggle"> <label for="side-toggle"><span>Show Sidebar</span><span>Hide Sidebar</span></label>but how about add icon at the corner of sidebar? Do you know any method?
January 31, 2023 at 5:03 am #2515379David
StaffCustomer SupportWill there be any label text ? Or just an icon
January 31, 2023 at 12:17 pm #2516122roadlink
Just icon example OK for me.
I believe I can handle the rest (hopefully 🙂 )February 1, 2023 at 3:59 am #2516841David
StaffCustomer SupportJust add the icons in the spans in place of the text.:
<label for="side-toggle"> <span>svg icon open</span> <span>svg icon close</span> </label>And in the CSS you can change / remove the
text-align: center;That will positon it to either side of the top if the sidebar. -
AuthorPosts
- You must be logged in to reply to this topic.