Shopify themes, liquid, logos, and UX
Hi all,
I have 2 questions in regards to the ADD TO CART button.
1. Is it possible to reduce the length of the button?
2. How do I make the button text center-aligned?
Thank you for your help!!
Page: wooffantasy.com
Solved! Go to the solution
This is an accepted solution.
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings
.product-form__buttons .product-form__submit { justify-content: center !important; }
- Helpful? Like and Accept solution! Or Support me: Buy Coffee
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings
.product-form__buttons .product-form__submit { justify-content: center !important; }
- Helpful? Like and Accept solution! Or Support me: Buy Coffee
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hey @sunday_april
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.product-form__submit {
max-width: 30rem !important;
justify-content: center !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
You can use this code here:
.product-form__buttons button.product-form__submit {
max-width: 30rem !important;
justify-content: center !important;
}
You can add in custom CSS field:
Hope this can help!
Best,
Daisy
Hello @sunday_april
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
.product__info-container * {
justify-content: center !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello, @sunday_april try this code
.product-form__buttons .product-form__submit {
justify-content: center !important;
max-width: 300px;
}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024