With the block
The block supports wide and full width, margin and padding, if your theme offers them.
Open the page in the block editor and click + to add a block.
Search for “Kubo Form” (it is in the Widgets category).
Choose the form from the dropdown. Only published forms are listed.
The editor shows the form as visitors will see it. To switch to another one, use the Form panel in the sidebar.
Save or publish the page.
With the shortcode
For the classic editor, a widget, a page builder or anywhere that accepts shortcodes:
[kubo_form id="123"]The number is the form’s ID. You will find it in the Shortcode column of Kubo Forms › Forms and at the end of the Form settings panel in the editor, ready to copy.
From a theme template
In a PHP file of your theme, with WordPress’s shortcode function:
<?php echo do_shortcode( '[kubo_form id="123"]' ); ?>Good to know
- A form can be used on as many pages as you like; whatever you change in it changes on all of them.
- It can appear twice on the same page: each copy works on its own.
- If the form is not published (a draft, in the trash or deleted), visitors see nothing, and people who can edit pages see the notice “Kubo Forms: choose a published form.”.
- Field blocks only exist inside a form’s editor: they are not offered on a normal page.
- The form’s styles and script only load on pages that show it. The button uses your theme’s button class (
wp-element-button), so it takes its look. - It works without JavaScript: the form is sent and comes back to the same page with the message (or goes to the thank-you page). With JavaScript it sends without reloading: the button says “Sending…”, errors appear on each field and, if all goes well, the form clears for another message.
- It works with page caching plugins: it uses no nonces that expire. If a cached page has carried the same form for more than 7 days, with JavaScript it renews itself when sent; without it, the person sees a notice and sends it again.
If it does not show up
- Check that the form is published and that the shortcode’s ID is its own.
- If the page shows the text
[kubo_form id="…"]as it is, that place does not process shortcodes, or Kubo Forms is deactivated.