What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Length of the buy button Athens 2.0 theme

Solved

Length of the buy button Athens 2.0 theme

emilbrandon
Explorer
130 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
9124 2179 2688

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 6 (6)

topnewyork
Globetrotter
758 124 139

 

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 Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount
emilbrandon
Explorer
130 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
9124 2179 2688

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
emilbrandon
Explorer
130 0 13

I only want this for the buy button

Made4uo-Ribe
Shopify Partner
9124 2179 2688

Yes, it only the buy button.

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

PageFly-Henry
Shopify Partner
1184 335 292

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.