javascript - How do I change all CSS for a shopify buy button in an external HTML file?
Solution:
To change the CSS for a Shopify buy button in an external HTML file, you can use the style attribute on the element to add inline styles. For example:<button style="background-color: red; color: white;">Buy Now</button>
Alternatively, you can use a stylesheet to define the styles for the button and then apply those styles using the class attribute on the<button>
element.
<button class="buy-button">Buy Now</button>
.buy-button { background-color: red; color: white; }
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.