Change "add to cart" and "buy it now" button width

Solved

Change "add to cart" and "buy it now" button width

jaydn
Visitor
2 0 0

jaydn_0-1690803933172.png

I am using "baseline" theme and I wanted to change the "add to cart" and "buy it now" button size. I want them to be shorter in width. How do I change it in the code

Accepted Solution (1)
Moeed
Shopify Partner
4386 1132 1390

This is an accepted solution.

Hey @jaydn 

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>
@media screen and (min-width: 768px) {
.lg\:w-3\/4 {
    width: 30% !important;
}
}
</style>

 

Moeed_0-1690804973283.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
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
4386 1132 1390

Hey @jaydn 
Kindly share your Store URL and Password if enabled

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
jaydn
Visitor
2 0 0
Moeed
Shopify Partner
4386 1132 1390

This is an accepted solution.

Hey @jaydn 

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>
@media screen and (min-width: 768px) {
.lg\:w-3\/4 {
    width: 30% !important;
}
}
</style>

 

Moeed_0-1690804973283.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
- Your Coffee Tip and my code, A perfect blend. ❤️