Before you start
- A website widget with your site on its Allowed origins list, for example
https://www.example.com. Copy its snippet from Install → Embed snippet.
Add the widget
Install a header and footer plugin
In Plugins → Add New Plugin, search for WPCode, or any plugin that adds code to the site footer. Install and activate it.
Paste the snippet into the footer box
In WPCode, go to Code Snippets → Header & Footer and paste into Footer:Use your widget’s own snippet, or replace
YOUR_WIDGET_ID and kl_pk_... with its values.You can paste the snippet into your theme’s
footer.php instead, just before <?php wp_footer(); ?>. Use a child theme: a theme update overwrites the parent theme’s files. Block themes have no footer.php, so use the plugin.