A user wanted to replace their add-to-cart button’s solid color background with an SVG image but struggled with the implementation for several days. They had the SVG file ready and hosted on Shopify’s CDN.
Resolution:
The user found their own solution before receiving detailed help
Another community member later provided step-by-step instructions involving custom code in the theme.liquid file
The solution required adding CSS/markup code above the closing </body> tag
A screenshot was shared showing the expected result
Status: Resolved independently by the original poster, though a working code solution was subsequently posted for reference.
Summarized with AI on October 30.
AI used: claude-sonnet-4-5-20250929.
Hey i would like to have a svg image as the backround of my add to cart button rather then just a color. Have been trying to figure it out myself for days and can’t
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.