Jump to content

Customise "was added to your cart" message

Go to solution Solved by creedon,

Recommended Posts

Hi everyone! Does anyone know how to customise the "was added to your cart" message that pops up when someone clicks the "add to cart" button via the general shop page without clicking on each individual product? I would like to change the background colour to #C7C7C7, round the corners to 15px, make the font size lowercase and add an exclamation mark at the end. Thank you!

Screenshot 2024-05-13 at 9.42.21 PM.png

Link to comment
  • Solution

Add the following to Website > Pages > Website Tools > Custom CSS.

/* begin cart item added popover */

  .template-cart-item-added-popover {
  
    background-color : #C7C7C7;
    border-radius : 15px;
    text-transform : lowercase;
    
    }
  
  .template-cart-item-added-popover p {
  
    color : black;
    
    }
    
  /* end cart item added popover */

This is for v7.1.

CSS can not be used to change the period to exclamation. For this you would need JavaScript and to use a Mutation Observer. I know of no code that currently does this.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.