Embedding Forms
NexusForm supports multiple ways to embed forms in your Shopify storefront. Choose the method that best fits your theme and use case.
Method 1 — App Block (recommended)
Section titled “Method 1 — App Block (recommended)”Works with any Online Store 2.0 theme. This is the easiest approach and requires no code.
- Open the NexusForm dashboard and go to your form.
- Click Embed → App Block.
- Click Go to Theme Editor — the Shopify customizer opens.
- Navigate to the page or template where you want the form.
- Click Add block in a section, then select NexusForm.
- Use the block settings to select which form to display.
- Click Save.
Supported locations
Section titled “Supported locations”You can place the app block on:
- Product pages
- Collection pages
- Custom pages
- The homepage
- Blog post templates
Method 2 — Shopify Pages (embed code)
Section titled “Method 2 — Shopify Pages (embed code)”If you want to add a form to a standard Shopify page without the theme editor:
- In the NexusForm dashboard, open your form and click Embed.
- Select Embed Code and copy the snippet.
- In Shopify admin, go to Online Store → Pages.
- Create or edit a page and switch the editor to HTML mode (
<>button). - Paste the embed code.
- Save the page.
The embed code looks like this:
<div id="nexusform-embed" data-form-id="YOUR_FORM_ID"></div><script src="https://cdn.nexusform.app/embed.js" defer></script>Method 3 — Liquid (advanced)
Section titled “Method 3 — Liquid (advanced)”For full control over placement and styling, you can use Liquid in your theme files:
- In the NexusForm dashboard, copy the Form ID from the form settings.
- In Shopify admin, go to Online Store → Themes → Edit code.
- Open the template or section where you want the form.
- Add the embed snippet:
<div id="nexusform-embed" data-form-id="{{ 'YOUR_FORM_ID' }}"></div>{{ 'https://cdn.nexusform.app/embed.js' | script_tag }}Styling the embedded form
Section titled “Styling the embedded form”NexusForm’s embed inherits your theme’s base font and color scheme automatically. If you need to adjust styles:
- Use the Theme Editor block settings (Method 1) to toggle borders, padding, and button styles.
- For finer control, add CSS in your theme’s
custom.cssor via the Additional CSS field in the Shopify theme customizer.
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| Form doesn’t appear | Make sure the app embed is enabled: Theme Editor → App embeds → NexusForm toggle on. |
| Form shows on wrong page | Check that the app block is in the correct template in the theme editor. |
| Styling looks off | Clear your browser cache. If using a vintage theme, try the embed code method instead. |
For more help, see the FAQ.