Place a form
Every form has a shortcode with its own short ID. Copy it with Copy shortcode in the editor, or from the Contact Forms list:
[remaily id="a1b2c3d"]
Paste it into a Shortcode block, a widget, a page builder, or anywhere else shortcodes work. The ID stays the same when you export and import the site or a demo, so pages keep showing the right form after the move. The form’s post ID works too, as in [remaily id="123"].
The shortcode takes two more attributes: class adds CSS classes to the form’s wrapper, and html_id sets its HTML ID.
Any other attribute fills a field whose Fill from is Shortcode attribute: [remaily id="a1b2c3d" product="Blue chair"] puts Blue chair in a field named product.
Other ways to place it
| Where | How |
|---|---|
| Block editor | Add the Contact Form block and pick the form. The block shows the form as visitors see it. |
| Elementor | Add the Contact Form widget and pick the form. |
| WPBakery | Add the Contact Form element and pick the form. |
| Classic widgets | In Appearance → Widgets, add Contact Form. |
| Theme code | <?php echo remaily_render( 'a1b2c3d' ); ?> |
Re:Maily loads its script and styles only on pages that show a form.
Was this article helpful?
Thanks for your feedback!