Shopify themes, liquid, logos, and UX
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.
Thanks
Solved! Go to the solution
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. Thanks
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.
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.
Sorry, but I can't see the button on collection page. Can you set one of the products to available?
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.
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
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.
Hi @3D-Cast
Please add this code at the end of base.css file
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. Thanks
Hi @3D-Cast
Please share the working theme link so that, I can check the solution for button center alignement and choose options issue.
Hi @3D-Cast
Welcome, please make accepted solution to my reply
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)
Best
Liz
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025