Code to make the "add to cart" buttons smaller in featured collection.

Solved

Code to make the "add to cart" buttons smaller in featured collection.

3D-Cast
Excursionist
27 1 4

Hi

I'm just after some help with a code to make the "add to cart" buttons half the current width in the featured collection section on my home page. As you can see in the pic they go right across the product tile. testing add to cart.jpg

Thanks

Accepted Solution (1)
3D-Cast
Excursionist
27 1 4

This is an accepted solution.

Thanks Mohan610

 

That is working well. What is the code to get the button to be centred on the product tile. In the picture you can see the button is off to the right a bit. Also any ideas on how I can get the "choose options" button to look the same as the add to cart. Thanksshop2.jpg

View solution in original post

Replies 11 (11)

B2Bridge
Trailblazer
365 75 94

Hi @3D-Cast 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

B2Bridge
Trailblazer
365 75 94

Hi @3D-Cast, Can you give us store url?

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

3D-Cast
Excursionist
27 1 4
B2Bridge
Trailblazer
365 75 94

Sorry, but I can't see the button on collection page. Can you set one of the products to available? 

B2Bridge_0-1738751071115.png

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

3D-Cast
Excursionist
27 1 4

Hi

I'm trying this feature on my testing theme. I don't want these buttons on my live theme until I can get their size right

B2Bridge
Trailblazer
365 75 94

So, can you download your theme and share your zip file with us? We will help you check it and suggest you a solution.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

mohan610
Shopify Partner
32 3 5

Hi @3D-Cast 

Please add this code at the end of base.css file 

.quick-add button.quick-add__submit {
       min-width: max-content;
       width: max-content;
       margin: 0 auto;
       padding: 0 25px;
}
➜ Solved it? Hit Like and Accept solution!
➜ Optimize/Customize your Store with Volume/Tier Discount
➜ Need a Shopify developer? Hire me at Upwork OR Everythinginhand
3D-Cast
Excursionist
27 1 4

This is an accepted solution.

Thanks Mohan610

 

That is working well. What is the code to get the button to be centred on the product tile. In the picture you can see the button is off to the right a bit. Also any ideas on how I can get the "choose options" button to look the same as the add to cart. Thanksshop2.jpg

mohan610
Shopify Partner
32 3 5

Hi @3D-Cast 

Please share the working theme link so that, I can check the solution for button center alignement and choose options issue.

➜ Solved it? Hit Like and Accept solution!
➜ Optimize/Customize your Store with Volume/Tier Discount
➜ Need a Shopify developer? Hire me at Upwork OR Everythinginhand
mohan610
Shopify Partner
32 3 5

Hi @3D-Cast 

 

Welcome, please make accepted solution to my reply

➜ Solved it? Hit Like and Accept solution!
➜ Optimize/Customize your Store with Volume/Tier Discount
➜ Need a Shopify developer? Hire me at Upwork OR Everythinginhand

LizHoang
Shopify Partner
1251 159 195

Hi Simon159

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

.quick-add button.quick-add__submit {
    min-width: max-content;
    width: max-content;
    margin: auto;
    padding: 0 20px;
}

 

Result (example) 

LizHoang_0-1738763016481.png

 

Best

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program