Jump to content

Customize Checkout Button with Hover & Alignment

Go to solution Solved by Lesum,

Recommended Posts

Successfully customized checkout page with the below code I found in forums, but I struggled to change the button's padding, the stroke color of a button with no fill, and to add a hover, so I ended up with this Continue text with arrow. And now I can't figure out how to align it. Would love to know how to do all the things mentioned so I could try some different options. 

 

Would also love to add some spacing under "Please review..." 

 


body#cart {
    background: #373737;
}
body#cart {
    color: white;
}
.cart-title {
    color: white;
}

body#cart {
    padding: 3rem;
}

[aria-label="Shopping Cart"]:after {
  content: 'Please review your items below:';
  font-size: 3rem;
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}

[aria-label="Shopping Cart"] {
  visibility: hidden;
  position: relative;
}

[aria-label="Checkout"]:after {
  content: 'Continue→';
  visibility: visible;
  color: #ff00ff;
  background: none !important;
  font-size: 1.5rem;  
  padding: 0rem;
    background-color: var(--primaryButtonBackgroundColor);
}

[aria-label="Checkout"] {
  visibility: hidden;
 
}

Screenshot 2024-07-16 at 12.58.07 PM.png

Link to comment
  • Replies 5
  • Views 552
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

@leena Hi! You can try adding this code in Website > pages > Website Tools > Custom CSS

// add spacing below cart title
div#sqs-cart-container .cart-title {
    margin-bottom: 40px;
}

#cart [aria-label="Checkout"] {
    font-size: 0 !important;
}

#cart .cart-checkout {
    border: 1px solid #f0f;
}

//button hover
#cart .cart-checkout:hover .cart-checkout-button:after {
    color: #fff;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.