• Resolved atoweb

    (@atoweb)


    Hi
    I need the filter to be collapsed on tablet as it is on mobile (“Collapse Filters Widget on Mobile devices”) since it is displayed above the content and not on the side.
    How can I do it ?
    Thanks for your help !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hi @atoweb

    You can change screen width value, when filters get mobile view by adding next code to the functions.php of your active theme

    add_filter( 'wpc_mobile_width', 'wpc_set_mobile_width' );
    function wpc_set_mobile_width( $mobile_width ){
        $mobile_width = 1920; //screen width in px
        return $mobile_width;
    }

    Please, let me know if it was helpful for you.

    Thread Starter atoweb

    (@atoweb)

    Yes it works, thanks a lot !!

    Thread Starter atoweb

    (@atoweb)

    Oups sorry, after clearing the cache it doesn’t work.
    I can see the “Filters” button, but the filters are not collapsed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Collapse Filters Widget on tablet devices’ is closed to new replies.