Embed the form
Add the NiceTou.ch contact form to any website.
- Log in or sign up.
- Navigate to your account.
- Copy the snippet.
Install on your site
Paste the snippet where the form should appear.
HTML
Paste it into the body of the page.
<head>
…
</head>
<body>
<h1>Contact us</h1>
<!-- Your form snippet -->
<form accept-charset="UTF-8" method="post">
<!-- Replace `YOUR-FORM-ID` with the unique id of your own code snippet -->
<script src="https://nicetou.ch/forms/YOUR-FORM-ID.js"></script>
<label for="sender">Your email address</label>
<input type="email" id="sender" name="sender" required />
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" minlength="6" required />
<label for="body">Message</label>
<textarea id="body" name="body" cols="60" rows="5" required></textarea>
<input type="submit" name="commit" value="Send message" />
<p><small class="credit">Form protected by <a href="https://nicetou.ch">NiceTou.ch</a></small></p>
</form>
…
</body>
WordPress
WordPress.com free and Personal plans cannot run the script. On a self-hosted site, WordPress sometimes removes a <script> tag unless a plugin adds it. Use a Custom HTML block.
- Go to your site’s dashboard and select the page, post, or template you want to add the HTML to.
- Click the + Block Inserter and search for “HTML”.
- Click the Custom HTML block to add it to your content.
- Click the “Edit HTML” button.
- Paste the snippet.
- Update the page.
Wix
The Embed HTML element has to be allowed to run the script.
- Open the page and click Add.
- Choose Embed code, then Embed HTML.
- Paste the snippet and publish.
Squarespace
This needs a Squarespace plan that allows custom code.
- Open the page and add a Code block.
- Paste the snippet into the block.
- Save the page.
Shopify
- Open the theme editor.
- Add a Custom Liquid section where the form should appear.
- Paste the snippet and save.
Webflow
This needs a Webflow plan that allows custom code. The designer canvas does not run the script until you preview or publish.
- Add a Code Embed element where the form should appear.
- Paste the snippet.
- Preview or publish the site.
For a developer or an AI assistant
Copy the snippet from the account page and keep the <script> tag. Its address is https://nicetou.ch/forms/FORM_ID.js. FORM_ID is the id in that snippet. Leave the input name attributes unchanged. The form sends the message to NiceTou.ch.