Length of the buy button Athens 2.0 theme

Solved
emilbrandon
Explorer
114 0 13

Hello, does anyone know how to increase or decrease the length of the buy button?

https://www.remlagret.se/products/drivrem-partner-psb270-snoslunga?pr_prod_strat=copurchase&pr_rec_i...

emilbrandon_0-1699963577312.png
Thanks in advance

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4121 946 1152

This is an accepted solution.

Hi @emilbrandon 

The button can be decrease/increase base on the container with the quantity selector you have in your product page. 

Check this one out. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media (min-width: 750px){
.product-actions {
    width: 60rem;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699970097982.png
  • Note: Thos code is only visible on desktop not on mobile. You can also decrease/increase the sizes. 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 6 (6)
topnewyork
Explorer
153 22 19

 

Go customize > edited code > buy-buttons.liquid and past this code

 

<style>
.button-add-to-cart {
    flex: none !important;
}
</style>

 

 

Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
emilbrandon
Explorer
114 0 13

Hello, and thank you for your response. I appreciate the help, but I'm still uncertain if this is exactly what I'm searching for. Additionally, I'm a bit confused about where to paste the code. There seem to be various places in the code editor.

Furthermore, I'm interested in finding a method to increase or decrease values, as I want to experiment with different settings. Could you provide guidance on this as well? Thank you!

Made4uo-Ribe
Shopify Partner
4121 946 1152

This is an accepted solution.

Hi @emilbrandon 

The button can be decrease/increase base on the container with the quantity selector you have in your product page. 

Check this one out. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media (min-width: 750px){
.product-actions {
    width: 60rem;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699970097982.png
  • Note: Thos code is only visible on desktop not on mobile. You can also decrease/increase the sizes. 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


emilbrandon
Explorer
114 0 13

I only want this for the buy button

Made4uo-Ribe
Shopify Partner
4121 946 1152

Yes, it only the buy button.

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


PageFly-Henry
Globetrotter
503 129 102

Hi @emilbrandon 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

.button, .shopify-challenge__button {

    min-width: 80% !important;

}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.