Using poll units in WordPress

Many sites use WordPress as their content management system (CMS). Integrating poll units on a WordPress site is very simple.

The first way to integrate the poll unit code is to add it using an HTML block. Copy and paste the integration code (script and div) into a custom HTML block and place it as desired. This will work using the Gutenberg editor for posts and pages and in the widget section in the WordPress admin.

The integration code can also be manually inserted using the Classic editor into a post or page using the text tab. However, when using this implementation method, the WordPress admin function may strip out any code if an attempt is made to edit the content. The editor may need to reinsert the code if/when the page/post is edited in the future.

Finally, the integration code may be added directly to the site’s theme by inserting it into the theme's PHP files. If this method is chosen, it is best to create a child theme rather than update the original theme files so that updates don't overwrite the code.

We are currently conducting a beta test of a WordPress plugin for poll units. When the plugin is released, we will provide more information.