Jump to content

Change text "Add to Cart" button

Recommended Posts

Site URL: https://gecko-lettuce-sw56.squarespace.com

Hi, I am looking to change the add to cart button to add to bag - cannot work out how to do it on 7.1 . I can do it for each individual item but is there a way of making it universal on the site? Would also be great to change the width, currently set on 100% but would love wider, and also how to change the font style. Mostly just need to change the actual words 

Password - AMOAMOAMO

Thank you x

 

Link to comment
  • 2 weeks later...

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  $(document).ready(function() {  
		$(".sqs-add-to-cart-button-inner").html(function() { 
          return $(this).html().replace("Add To Cart", "New text");  
    });
	});
</script>

 

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
  • 5 months later...
  • Susana_SQSP changed the title to Change text "Add to Cart" button

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.