Shopify themes, liquid, logos, and UX
Hi, I am working on my shop. I know how most of the things work but I stumbled upon a specific problem. How can I change the add to cart button in the new Dawn version 15.0.2? I think I have to change the code, but I don't know how I can find it. I tried looking through the assets in search of add-to-cart or something similar in the code but to be honest I have no idea what I'm doing. Can someone help me? I want to change the button color to #F3E2FF and I want to change the color of the text to white or #F3E2FF.
Hey @funiki_nl
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.
Best Regards,
Moeed
Hello @funiki_nl, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.
button.product-form__submit.button.button--full-width {
background: #F3E2FF;
}
See the screenshot below,
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hello @funiki_nl
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product-form__buttons .button:before, .button: after{
box-shadow: unset;
}
.product-form__buttons .product-form__submit {
color: #fff !important;
background: #F3E2FF !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @funiki_nl
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowHi @funiki_nl,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.product-form__submit.button {
background-color: #F3E2FF !important;
}
Thank you, this worked 🙂
Could you help me with another thing?
How can I change the color of the font to #685A81 because now you don't see a text but only a lila color button 🙂
Hi @funiki_nl,
Please change code:
.product-form__submit.button {
background-color: #F3E2FF !important;
color: #685A81 !important;
}
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024