Home Forums Basel support forum Filters on mobile and no filters on desktop

Filters on mobile and no filters on desktop

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #23089

    jakub
    Participant

    Hi, 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

    #23095

    Artem Temos
    Keymaster

    Hello,

    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 Studio

    #23101

    jakub
    Participant

    Hi,

    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,
    Jakub

    #23109

    Artem Temos
    Keymaster

    Sorry, but we can’t open your website and it shows an error in the browser. Could you please check it?

    #23110

    jakub
    Participant

    Yes, my bad.

    #23112

    Artem Temos
    Keymaster

    Add 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;
    }
    #23119

    jakub
    Participant

    Hi,

    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,
    Jakub

    #23121

    Artem Temos
    Keymaster

    Try to add this code to the functions.php file in the child theme

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    #23276

    jakub
    Participant

    Hi,

    I have added this but nothing changed, I still can’t see sorting drop down on desktop.

    Best,
    Jakub

    #23278

    Artem Temos
    Keymaster

    Sorry, try this one instead

    add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    #24203

    jakub
    Participant

    Hi,

    I have added it but unfortunately still nothing changes.

    Best,
    Jakub

    #24204

    Artem Temos
    Keymaster

    In this case, we need your FTP access to check why it doesn’t work.

    #24208

    jakub
    Participant

    Hi,

    Sure, here you go:

    Best,
    Jakub

    #24210

    Artem Temos
    Keymaster

    We can’t see your website now. Please, provide us an access.

    #24211

    jakub
    Participant

    Hi,

    Under construction mode has been temporarily disabled.

    Best,
    Jakub

    #24218

    Artem Temos
    Keymaster

    Hi,

    Check how it works now.

Viewing 16 posts - 1 through 16 (of 16 total)