Topic summary
A user seeks to increase the font size of the “Add to Cart” button in Shopify’s Dawn theme.
Solutions Provided:
Two CSS code snippets were shared to modify the button font size:
-
First approach: Add CSS targeting
button.product-form__submit.button.button--full-width.button--secondarywithfont-size: 20px;at the bottom of thebase.cssfile. -
Second approach: Target the button’s
spanelement withfont-size: 25px !important;in the same file location.
Outcome:
The original poster confirmed the second solution worked successfully. Another user verified this approach also works specifically for Dawn Theme version 10.0, providing additional confirmation for others encountering the same issue.
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >base.css and paste this at the bottom of the file:
button.product-form__submit.button.button--full-width.button--primary {
font-size: 20px;
}
button.product-form__submit.button.button--full-width.button--secondary span {
font-size: 25px !important;
}
add this code in the bottom of the base.css file.
it didn’t work ![]()
This one worked
Thank you for your response. It’s good to know that it’s worked for you. Kindly feel free to get back to me if you need any further assistance.
This worked for me for anyone with Dawn Theme 10.0. Thanks heaps!
