Shopify themes, liquid, logos, and UX
how can i centre the text on all the buttons on my shopify theme. I can't find a solution anywhere.
Solved! Go to the solution
This is an accepted solution.
Hello @varrolondon
You can add code by following these steps
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>
.button {
text-align: center !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hello @varrolondon
You can add code by following these steps
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>
.button {
text-align: center !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @varrolondon
You can follow these step to achieve you're result
Go to Online Store -> Theme -> Edit code->theme.liquid file
Paste the below code before </body> on theme.liquid
<style>
.button {
display: flex !important;
text-align: center !important;
justify-content: center !important;
align-items: center !important;
}
</style>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025