Jump to content

Change text "Add to Cart" button

Recommended Posts

Posted

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

 

  • 2 weeks later...
  • Replies 2
  • Views 1.9k
  • Created
  • Last Reply
Posted

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!)

  • 5 months later...
Posted

I managed to change the add to cart button text, but still didn't figure out a way to change the  "adding" and "added!" animation text that appears after clicking the button. Any ideas on that? Thank you!

  • Susana_SQSP changed the title to Change text "Add to Cart" button

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.