Jump to content

How can I style and rename an 'Add to Cart' button?

Recommended Posts

Hey folks,
I've added an 'Add to Cart' button to my site and would like to change the size and position of the button. Unfortunately, I haven't been able to achieve this using the usual methods. The button should have the size of the button next to it (see attached screenshot) and be positioned a bit lower to align with the video.
Additionally, I'd like to change the text from 'Add to Cart' to 'Enroll now'.

Is all of this possible? Looking forward to your help!

Site: https://maltemartenmethod.squarespace.com/module-1
Pword: maltemartenmethod2023

Bildschirmfoto2024-01-09um01_15_58.thumb.png.70368128d067875ace09dbb1a998658b.png

Link to comment
  • Replies 3
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add a Code Block under > Paste this code

<style>
  .sqs-add-to-cart-button-inner {
    font-size: 0;
}

.sqs-add-to-cart-button-inner:before {
    font-size: 20px !important;
    content: "new text";
    font-family: var(--primary-button-font-font-family);
    font-style: var(--primary-button-font-font-style);
    font-weight: var(--primary-button-font-font-weight);
    line-height: var(--primary-button-font-line-height);
    letter-spacing: var(--primary-button-font-letter-spacing);
    text-transform: var(--primary-button-font-text-transform);
    padding-left: 1em;
    padding-right: 1em;
}
</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.