Length of the buy button Athens 2.0 theme

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_id=dedb0bad8&pr_rec_pid=6993261494452&pr_ref_pid=6631151075508&pr_seq=uniform

Thanks in advance

1 Like

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


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!

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;
}
}

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

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

I only want this for the buy button

Yes, it only the buy button.