1Back up your theme (Online Store > Themes > Actions > Duplicate) before changing any code.
2Open Online Store > Themes > Edit code and create a new file under Snippets named gift-message-cart.liquid.
3Paste the complete file - markup, styles and JavaScript are already inside the single file, nothing else to install.
4Call the snippet from the template or section where it should appear using the render tag shown in the Usage tab.
5Preview the product, collection or cart page and test on mobile before publishing.
gift-message-cart.liquid
1<gpl-giftclass="gpl-gift">2<labelclass="gpl-gift__check">3<inputtype="checkbox" data-gift-check> This order is a gift4</label>5<divclass="gpl-gift__fields" hidden data-gift-fields>6<inputtype="hidden"name="attributes[Gift]"value="Yes" disabled>7<textareaname="attributes[Gift message]"class="gpl-gift__area"rows="3"placeholder="Write your gift message…" disabled></textarea>8</div>9</gpl-gift>