I need to embed a form to a page on Shopify, but I can’t figure out how to get it to display correctly. I’ve tested it on a Wordpress site to make sure the code is correct and it displays correctly there. Any advice?
Depending on your theme, you can use section called “Custom Liquid” or “Custom Code” or “Custom HTML”.
Paste your code in this section relevant setting.
Alternatively, you can create a new Page and when editing page content, press the <> button.
Your content entry will change to HTML view – paste your code there, save and preview.
Share a link to the page where you’ve implemented the code for further help. (preview password as well if one is set).
There are specific methods to implement forms on a Shopify theme. For this you need to use the syntax of Liquid templating language. Read more here https://shopify.dev/docs/api/liquid/tags/form
Also, there could be more factors so you should debug it locally searching for specific errors.
I did try that, but the form won’t display. I think it may be because the code is inline JavaScript after doing some more digging?
