Home / Forums / Basel support forum / Filters on mobile and no filters on desktop
Home › Forums › Basel support forum › Filters on mobile and no filters on desktop
Filters on mobile and no filters on desktop
- This topic has 15 replies, 2 voices, and was last updated 8 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
November 2, 2017 at 9:32 am #23089
jakubParticipantHi, I would like to achieve an effect where shop filters are enabled on phone but disabled on desktop. So that woo-commerce sorting box is on desktop in the right corner but on phone it’s filters. I tried achieving that with some css but failed.
Desired desktop look: https://prnt.sc/h56oy4
Desired phone look: https://prnt.sc/h56oqa
November 2, 2017 at 10:50 am #23095
Artem TemosKeymasterHello,
Thank you so much for contacting our support center.
It would be possible only with a custom CSS code to hide one filter on desktop and show it on mobile. If you want, we can prepare it for you. Just send us your shop page link.
Kind Regards
XTemos StudioNovember 2, 2017 at 10:54 am #23101
jakubParticipantHi,
That would be perfect, thank you 🙂
I did some poedit translations so the theme interface is not 100% english, hope you won’t mind.
Best,
JakubNovember 2, 2017 at 12:35 pm #23109
Artem TemosKeymasterSorry, but we can’t open your website and it shows an error in the browser. Could you please check it?
November 2, 2017 at 12:39 pm #23110
jakubParticipantYes, my bad.
November 2, 2017 at 12:56 pm #23112
Artem TemosKeymasterAdd this code snippet to the Custom CSS field for desktop
.shop-loop-head .basel-filter-buttons { display: none!important; }And this one for mobile devices only
.sidebar-left { display:none; }November 2, 2017 at 3:39 pm #23119
jakubParticipantHi,
I’ve added a code snippet and everything works fine apart from one thing.
How it is now: https://prnt.sc/h5c0k0
What I need in desktop view: https://prnt.sc/h5c0up
Best,
JakubNovember 2, 2017 at 3:45 pm #23121
Artem TemosKeymasterTry to add this code to the functions.php file in the child theme
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );November 5, 2017 at 8:45 am #23276
jakubParticipantHi,
I have added this but nothing changed, I still can’t see sorting drop down on desktop.
Best,
JakubNovember 5, 2017 at 9:05 am #23278
Artem TemosKeymasterSorry, try this one instead
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );November 14, 2017 at 3:57 pm #24203
jakubParticipantHi,
I have added it but unfortunately still nothing changes.
Best,
JakubNovember 14, 2017 at 3:59 pm #24204
Artem TemosKeymasterIn this case, we need your FTP access to check why it doesn’t work.
November 14, 2017 at 4:06 pm #24208
jakubParticipantHi,
Sure, here you go:
Best,
JakubNovember 14, 2017 at 4:10 pm #24210
Artem TemosKeymasterWe can’t see your website now. Please, provide us an access.
November 14, 2017 at 4:11 pm #24211
jakubParticipantHi,
Under construction mode has been temporarily disabled.
Best,
JakubNovember 14, 2017 at 5:19 pm #24218
Artem TemosKeymasterHi,
Check how it works now.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register