Color of background color of sidebar (with widgets) on mobile

I used widget Muffin login widget in Woocommerce sidebar, but on mobile background color of the sidebar is white (and in the same input area color is also white). Which option i can use to change the background color of Woocommerce siderbar (and widgets on it) on mobile?

Kind regards

Comments

  • The address of the Woocommerce products page with the sidebar is krainaaloesu-forever.pl
  • Hello,
    Please paste that CSS code into the Theme Options > Custom CSS & JS > CSS
    .mcb-sidebar::before{background:transparent !important;}
    Thanks
  • I've paste that code to CSS and now it looked:

    #Action_bar{display:block !important;}
    @media (max-width:768px){
        #Action_bar .social{display: none !important;}
    }
    .mcb-sidebar::before{background:transparent !important;}

    but nothing changed - still on mobile background color of the sidebar is white (and in the same input area color (of Muffin login widget)  is also white. On desktop the background color of sidebar is grey and input fields are visible.
    my page with the sidebar is: https://krainaaloesu-forever.pl/produkty/
  • edited May 2020
    First of all, the sidebar is transparent in both cases, since you did not paste it inside the @ media query.

    If you set the color to transparent, then it is normal that the background will be white, since the background behid it is white.
    Just change the color in the CSS provided above.
    @media (max-width:768px){
    .mcb-sidebar{background:gold !important;}
    }
  • Sorry but I still don't know how to change the sidebar's background color on mobile (on desktop the sidebar's background color is grey). The "transparent" parameter wasn't my idea - it was given by Pablo.
    I understand that i have to put the ".mcb-sidebar::before......" code inside @media query but i don't know what to put after "background:" . I've tried to put "grey !important;}" but it doesn't work.
  • I updated the code Bryan send, it will work fine now.
    Thanks
  • Thank you very much
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.