How should I do this
– Widget area Main sidebar is shown only in desktop
– Widget area: Shop filters is shown only in mobile
They both have same widget.
This topic has 10 replies, 2 voices, and was last updated 5 years, 1 months ago ago by tuijatuulia
How should I do this
– Widget area Main sidebar is shown only in desktop
– Widget area: Shop filters is shown only in mobile
They both have same widget.
Hello,
Do you want to implement this for the shop/product categories pages?
Add the following code to Theme Options > Custom CSS
@media only screen and (min-width:993px){
.filter-wrap {
display: none;
}
}
@media only screen and (max-width:992px){ .woocommerce .sidebar {
display: none;
}
}
Regards
Thank you – I will try it. It will be for search results, and category pages and /shop/ pages and tag pages, in mobile would like to show only filters, not sidebar. and in Desktop only sidebar, not filters.
Hello,
Try the code that I provided and then let me know about the results.
Regards
Thank you – this looks great now! Is the vendor shop sidebar separate – so that I could enable it separately?
I am using Dokan and there would be a shop sidebar – but now it does not show anything. Do you have some trick to show that too? I have enabled in Dokan that it shows the shop sidebar from theme.
Hello,
Keep this option disabled http://prntscr.com/v9w2yp and use the Dokan sidebar area to add the widgets http://prntscr.com/v9w3f0
Regards
Yes, I think I had these settings already before – but cannot see a thing in the sidebar, please see pic
Hello,
There is sidebar on the vendor page http://prntscr.com/vbsk0u Just add the necessary widgets to your Dokan sidebar https://prnt.sc/v9w3f0
Regards
Thank you. Ok the filters dont then work there.
The issue related to '‘Showing different widgets in mobile/desktop’' has been successfully resolved, and the topic is now closed for further responses