Wordpress
Last updated
Last updated
This guide explains how to integrate your waitlist widget into a WordPress page or post using a custom HTML block. The code snippets provided are just examples, and you should replace them with actual data from your waitlist, which can be found on the Waitlist Settings page.
Log in to your WordPress dashboard.
Navigate to the page or post where you want to embed the waitlist widget, or create a new page/post.
Once you’re in the editor, click the plus (+) icon to add a new block.
Search for the Custom HTML block.
Select the Custom HTML block and add it to the location where you want the widget to appear.
To ensure the waitlist widget functions properly, you need to add both the integration script and the iframe into the Custom HTML block.
In the Custom HTML editor that appears, insert the following code:
Make sure to replace your-waitlist-id
with the actual waitlist ID specific to your waitlist, which you can find on your Waitlist Settings page.
If your waitlist ID is 66ea8feab82bb68e555b4167
, the code would look like this:
By default, the widget iframe is set to fill 100% of the width and height of the container where it is placed. You can adjust the dimensions of the widget by editing the style
attribute in the <iframe>
code.
For example, if you want to customize the width and height of the widget, you might use the following:
You can modify the width
and height
values as needed based on the layout and design of your page.
After adding the HTML code, click Preview to ensure everything looks correct.
If the widget doesn't appear in the editor, don't worry—widgets embedded via custom HTML blocks might not display in the preview within the editor. You’ll need to publish or preview the live page to see it in action.
Once you are satisfied, click Publish to make the page or post live.
The waitlist widget may not be visible in the WordPress editor. It will only appear on the published page. Make sure to preview or publish the page to verify that the widget is displaying and functioning properly.
Ensure that you replace the example waitlist ID with the actual one from your Waitlist Settings page.
The script and iframe code must be included together for the widget to function correctly.
Once the page is published, test the widget on the live site to ensure it works as expected.
Following these steps, you should now have the waitlist widget successfully integrated into your WordPress site, allowing visitors to register directly from the page.