Jump to content

Shopping Cart Icon change?

Recommended Posts

  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Add this code to Last line in Code Injection > Footer

<script>
  $(document).ready(function(){
    $('<img src="https://content.invisioncic.com/p289038/monthly_2024_05/basket.png.8dc2a9ce38537463aa6ac28d35b94b00.png" class="custom-cart-icon"/>').insertBefore('svg.icon--cart');
});
</script>
<style>
  span.Cart-inner svg {
    display: none;
}
span.Cart-inner .custom-cart-icon {
    width: 30px;
}
</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!)

Posted (edited)

Thanks. But when I tried to reduce the size from anything less than 30px it squashed the basket and messed with the spacing on both desk and mobile view. So it might be easier to stick with original trolly image.

Screenshot 2024-05-06 at 4.30.33 pm.png

 

Screenshot 2024-05-06 at 4.45.49 pm.png

Edited by mportch

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.