Liquid, JavaScript, themes, sales channels
Hello,
I am using the prestige theme. On each products' page, I have two buttons: "Add to chart" and "Buy it now". How can I make both buttons orange? On the phone view, I only see the "Add to chart" button. How can I add both buttons in orange?
Hey there, would need your store's URL to check it out! And password if there is one
To make the add to cart button orange, you'd have to change its button class from secondary to primary.
In your product template in the theme editor, look for this code:
<button type="submit" class="ProductForm__AddToCart Button Button--secondary Button--full" data-action="add-to-cart"><span>Add to cart</span></button>
And edit --secondary to --primary like so:
<button type="submit" class="ProductForm__AddToCart Button Button--primary Button--full" data-action="add-to-cart"><span>Add to cart</span></button>
Thank you for your quick response! I searched for the code above in product templates, product sections, and product snippets; but I can't find the code above. Is it in a particular file?
Thank you for your quick response! I searched for the code above in product templates, product sections, and product snippets; but I can't find the code above. Is it in a particular file?
Hey Alex,
Hope you are doing great. I am struggling with finding the button type piece of code. Can you help me please?
Thank you!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024