Prerequisites
Before you begin, make sure you have:
A Glowstudio account with a configured AI agent
Admin access to your WordPress website
Integration Methods
There are three main ways to integrate your Glowstudio widget into WordPress:Plugin Method
Using the “Insert Headers and Footers” plugin
Theme Editor Method
Directly editing your theme’s header.php file
Elementor Method
Using Elementor’s Custom Code feature
Glowstudio Widget Code
Before proceeding with any method, you’ll need your Glowstudio widget code:Method 1: Using a Plugin
Install Plugin
- Open your
WordPressdashboard - Go to Plugins > Add New
- Search for Insert Headers and Footers
- Install and activate the plugin by WPBrigade
Method 2: Using the Theme Editor
Edit Header File
- In the
Theme Filessection on the right, find and open the header.php file - Locate the closing
</head>tag
Method 3: Using Elementor
Configure Custom Code
- Enter a title for your code snippet
- Choose the Location:
<head>for page level<body>- Start for beginning of the page’s body<body>- End for end of the page’s body
- Set the Priority (1-10, lower numbers have higher priority)
- Paste the Glowstudio widget code in the code block editor
Set Display Conditions
- In the Publish block, click Edit next to Conditions
- Set the desired conditions for where the widget should appear
Customization Options
You can customize your widget’s behavior and appearance by adjusting the VG_CONFIG options:Change Position
Change Position
Modify the
render option to ‘bottom-left’ or ‘bottom-right’ to change the widget’s position.Autostart Chat
Autostart Chat
Add
autostart: true, to the VG_CONFIG object to have the widget open automatically when a user visits your website.Custom Styling
Custom Styling
Add your own CSS file to the
stylesheets array for custom styling:Troubleshooting
If you encounter issues with your Glowstudio widget integration:- Verify that you’ve copied the entire code snippet correctly.
- Double-check that you’ve replaced “YOUR_AGENT_ID” with your actual Glowstudio agent ID.
- Clear your browser cache and refresh your WordPress website to see changes.
- If using a caching plugin, clear the cache after making changes.
- Check for conflicts with other plugins or theme customizations.
If you’re using a security plugin, make sure it’s not blocking the Glowstudio scripts from loading.
