WordPress Integration

If you are looking to integrate your website with WordPress, you have 3 methods:

Theme builders such as Elementor Pro or Divi provide the option to add code to the site footer.

Elementor Pro Theme Builder

Elementor Custom Code

Divi Theme Builder

Divi Theme Options >Integration

Simply add the provided script tag to your website’s HTML footer using your theme builder.

 <script id="convobot_extension" fallback-to-default="true" right-margin="3vw" bottom-margin="3vh"  src="https://content-beta.convogrid.ai/script/extension.v.0.1.1.min.js"></script>

Method 2. Using a code editor plugin (Easy)

By using plugins like Code Snippets or WP Code, you will be able to add the snippet directly to the site footer.

Code Snippets

Simply add the script tag to your website’s HTML footer using your code plugin.

 <script id="convobot_extension" fallback-to-default="true" right-margin="3vw" bottom-margin="3vh"  src="https://content-beta.convogrid.ai/script/extension.v.0.1.1.min.js"></script>

Method 3. Edit the Functions.php file in your WP theme (Advanced)

You can also use this PHP script to embed the widget directly into the site through the functions.php file. Make sure to have a child theme to avoid data deletion when updating the theme.

Child Theme Functions.php file

Add the function below to the file using the theme file editor, or by manually editing the PHP file through your file manager.

Functions.php
function embed_convobot_script() {
    $script = '<script id="convobot_extension" fallback-to-default="true" right-margin="3vw" bottom-margin="3vh"  src="https://content-beta.convogrid.ai/script/extension.v.0.1.1.min.js"></script>';
    echo $script;
}

add_action( 'wp_footer', 'embed_convobot_script' );

Looking for styling options? Please refer Convo Connector.

Last updated