Jump to content

Shopping cart background color in dark mode

Recommended Posts

Site URL: https://inoubli4ble.art/cart

Site URL: https://inoubli4ble.art/cart

How can I change the background color of my shopping cart page in dark mode? I want the background color to be #202124 & all the text + button to be white. I tried 

body#cart main#page {
    background-color:#202124!important;
}

already, but it doesn't seem to work, even after refreshing and clearing the browser cache.

Hope somebody can help me.

Best,
inoubli4ble 

Bildschirmfoto 2022-06-19 um 20.15.26.png

Link to comment
22 minutes ago, inoubli4ble said:

Thanks for your help. I implemented it but it doesn't seem to work 😞

Add this new code to Settings > Advanced > Code Injection > Header

<style>
  body.dark-mode#cart {
    background-color: #202124;
}
body.dark-mode#cart #page * {
    color: white;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.