Personalized checkout and custom promotions with Shopify Scripts
Hello, I'm new to coding and wanted to give it a try! I'm adding a button to my product page but when I make test the code on https://www.w3schools.com/ and transfer it to my HTML product link it changes the code.
Example:
<a href="https://www.sarskild.com/pages/client-services-book-a-fitting" class="button1" target="_blank">Client Services<br><medium>Enquire A Studio Visit 〉</medium></a>
Changes to
<a class="button1" href="https://www.sarskild.com/pages/client-services-book-a-fitting" target="_blank">Client Services<br></a><medium>Enquire A Studio Visit 〉</medium> <!-- HTML !-->
Would love to know why! Thank you!
What is the <medium> element you're adding? Are you hoping to bold the text?
I would suspect the html validator is asking something similar to me and trying to make your code valid.
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