Jump to content

Remove the background color of the cart icon ( When I click ADD TO CART )

Recommended Posts

Hello,
I managed to remove the shopping cart icon but I still have the white background. I would like to remove the white background behind the green circle.

I would also like to add "cart" in front of the number?
Can you help me with this?

Thanks

 

image.png.e25a48fa0e931323397a8dca88758d88.png

Link to comment
  • Replies 9
  • Views 245
  • Created
  • Last Reply

Top Posters In This Topic

17 hours ago, Andy25 said:

Thanks for the code but I think it is not complete because the following points are missing :

- The text "panier" is not on the same line of the number of products
- The green square is not a pill

Thank you so much tuanphan for your help

Dont remove above code & add this code

.floating-cart {
    min-width: 50px;
    flex-direction: column;
    border-radius: 30px;
}
span.Cart-inner:before {
    white-space: nowrap;
    width: auto !important;
    display: block;
}
span.sqs-cart-quantity:before {
    content: "(";
}
span.sqs-cart-quantity:after {
    content: ")";
}
.floating-cart .icon {
    width: auto;
}
.icon-cart-quantity {
    top: -0.5em;
}

 

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.