Why is the text not centred on any of my buttons on new theme?

Solved

Why is the text not centred on any of my buttons on new theme?

varrolondon
Visitor
1 0 0

how can i centre the text on all the buttons on my shopify theme. I can't find a solution anywhere.

Accepted Solution (1)

niraj_patel
Shopify Partner
2391 516 515

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.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 2 (2)

niraj_patel
Shopify Partner
2391 516 515

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.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

BrainStation23
Shopify Partner
416 62 61

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>



Brain Station 23 PLC (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps