# WordPress Integration

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

### Method 1. Include in the Site Footer in your Theme Builder (Easy)

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

#### Elementor Pro Theme Builder

<figure><img src="/files/tsNXPH3Dlb73VRkrmmCR" alt=""><figcaption><p>Elementor Custom Code</p></figcaption></figure>

#### Divi Theme Builder

<figure><img src="/files/sRR7aRV8JOhw9FwXvBFz" alt=""><figcaption><p>Divi Theme Options >Integration</p></figcaption></figure>

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

```javascript
 <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.

<figure><img src="/files/JDBbrzcdQMOmR4yMdG5g" alt=""><figcaption><p>Code Snippets</p></figcaption></figure>

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

```javascript
 <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.

<figure><img src="/files/ulLqllJocBDd8M7s2xaw" alt=""><figcaption><p>Child Theme Functions.php file</p></figcaption></figure>

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

{% code title="Functions.php" overflow="wrap" %}

```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' );
```

{% endcode %}

Looking for styling options? Please refer [Convo Connector](/convogrid/integration/convo-connector.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convogrid.ai/convogrid/integration/convo-connector/wordpress-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
