Showing different widgets in mobile/desktop

This topic has 10 replies, 2 voices, and was last updated 5 years, 1 months ago ago by tuijatuulia

  • Avatar: tuijatuulia
    tuijatuulia
    Participant
    October 25, 2020 at 19:12

    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.

    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    October 26, 2020 at 18:48

    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

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    October 27, 2020 at 14:27

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    October 27, 2020 at 16:38

    Hello,

    Try the code that I provided and then let me know about the results.

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    October 29, 2020 at 18:39

    Thank you – this looks great now! Is the vendor shop sidebar separate – so that I could enable it separately?

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    October 29, 2020 at 19:38

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    October 30, 2020 at 08:11

    Hello,

    Keep this option disabled http://prntscr.com/v9w2yp and use the Dokan sidebar area to add the widgets http://prntscr.com/v9w3f0

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    October 31, 2020 at 21:14

    Yes, I think I had these settings already before – but cannot see a thing in the sidebar, please see pic

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    November 2, 2020 at 12:55

    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

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    November 2, 2020 at 21:20

    Thank you. Ok the filters dont then work there.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Showing different widgets in mobile/desktop’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.