Align button text left with no padding?

Solved

Align button text left with no padding?

jasminsharp97
Shopify Partner
44 0 18

I'm working with the Lorenza theme, this is my site:

Store: https://66cdcb-86.myshopify.com/

Password: chohme

 

All of the buttons on this site are just plain text, there isn't a button background color. Because of that, it looks weird that the text is just floating in the middle of a section. I want to align the text to the left and have there be no padding on that side of the button, so it looks like all of the text is aligned.

Screenshot 2024-09-13 094431.png

Accepted Solution (1)

Moeed
Shopify Partner
5519 1496 1787

This is an accepted solution.

Hey @jasminsharp97 

 

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>
a.text-block__item.text-block__button.bttn.bttn--secondary.bttn--inline {
    padding-left: 0 !important;
}
</style>

RESULT:

Moeed_0-1726247059216.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
5519 1496 1787

This is an accepted solution.

Hey @jasminsharp97 

 

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>
a.text-block__item.text-block__button.bttn.bttn--secondary.bttn--inline {
    padding-left: 0 !important;
}
</style>

RESULT:

Moeed_0-1726247059216.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
8420 2016 2471

Hi @jasminsharp97 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

.image-with-text__text-container {
    padding-left: 10px !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1726247340227.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.