I’ve tried so many tutorials and various codes and got nowhere so asking for help on here,
Currently, working on homepage.
I have a featured products section and detest the quick add bulk option buttons.
I want to create something that looks like this using my own brand colours that I can use wherever I have products displayed. Happy to use the current dawn theme basket Svg icon
If anyone can help me with this using basic terminology it would be amazing!
To replace the quick add button with a custom design in the Dawn theme:
Edit HTML: In Edit Code, go to sections/product-grid.liquid or sections/featured-products.liquid . Replace the quick add button code with your custom button:
Style Button: In assets/theme.css, add styles for your button:
Optional - JavaScript: Use Shopify’s AJAX API to add products to the cart without redirecting.
Save and Test: Save your changes and preview your homepage.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thank you for your question!
To achieve the customization of the “Quick Add” buttons on your Shopify Dawn theme, follow the steps below. The goal is to replace the current bulky button style with a more streamlined, custom-styled “Quick Add” button using your brand colors and the Dawn theme’s basket SVG icon.
1. Update Product Card Template
To begin, you need to customize the product card component.
Steps:- Go to Online Store > Themes > Edit Code.
Find the product-card.liquid file under the Sections directory.
Look for this block of code in product-card.liquid: {% render ‘product-card’, product: product %}
And add a custom class to the button for easier styling:
Replace: Quick Add
With:
Add to Cart
2. Customizing the Button Style (CSS)
Now, let’s add some custom styles using CSS:
Steps:- Go to Assets > base.css (or style.css, depending on your Dawn theme version).
This looks great however, I’ve already encountered my first problem. I do not have this ‘product-card.liquid file’ in the sections folder. Could it have another name?
In the snippets folder I have located a file named card-product-liquid but this does not contain the following {% render ‘product-card’, product: product %} within the html as far as I can tell!