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 ugc-submit.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.
6Collects photo links via a contact form - photos themselves go to your DM/inbox, not a database.
ugc-submit.liquid
1<divclass="gpl-ugc2">2<pclass="gpl-ugc2__heading">{{heading| default: 'Show us your style'}}</p>3<pclass="gpl-ugc2__sub">Tag {{handle| default: '@us'}} on Instagram or send a pic - we feature the best ones.</p>4{%-form'contact', class: 'gpl-ugc2__form'-%}5<inputtype="hidden"name="contact[tags]"value="ugc-{{ product.handle }}">6<inputtype="text"name="contact[body]"placeholder="Link to your post or photo">7<inputtype="email"name="contact[email]"placeholder="Email (to credit you)" required>8<buttontype="submit">Share</button>9{%-endform-%}10</div>