WordPress Plugin
The Lantern WordPress plugin is the easiest way to install the Lantern widget on a WordPress site. It adds a settings page inside WordPress admin where you can enter the embed key — no theme file editing required.
#What the plugin does
- Adds the Lantern widget script tag to every page of the WordPress frontend
- Provides a settings screen under Settings → Lantern in wp-admin
- Only shows the widget to logged-in WordPress users (auth gate is built in)
#Requirements
- WordPress 5.0 or later
- PHP 7.4 or later
- A Lantern account with at least one client configured
#Installation
#From the WordPress Plugin Directory (recommended)
The plugin is live at wordpress.org/plugins/lanternhq-bug-reporter.
- In your WordPress admin, go to Plugins → Add New.
- Search for Lantern (or LanternHQ Bug Reporter).
- Click Install Now, then Activate.
#Manual installation
- Download the plugin ZIP from wordpress.org/plugins/lanternhq-bug-reporter or lanternhq.app/wordpress.
- In wp-admin, go to Plugins → Add New → Upload Plugin.
- Upload the ZIP file and click Install Now.
- Click Activate Plugin.
#Configuration
After activation:
- Go to Settings → Lantern in your WordPress admin.
- Enter your Embed Key — find this in your Lantern workspace under Clients → [your client] → Embed.
- Click Save Settings.
The widget will now appear on the frontend for all logged-in WordPress users.
#Testing
- Log into WordPress.
- Visit the frontend of the site (e.g. the homepage).
- You should see the Lantern widget button.
- Submit a test issue and confirm it appears in your Lantern workspace.
#Uninstalling
- In wp-admin, go to Plugins.
- Deactivate and then delete the Lantern plugin.
The plugin settings (embed key) are removed when the plugin is deleted. No data is sent to Lantern on uninstall.
#Updating the embed key
If you regenerate the embed key in Lantern (e.g. for security reasons), update it in the plugin settings:
- Go to Settings → Lantern.
- Replace the old key with the new one.
- Save.
The widget will use the new key immediately.
#Troubleshooting
Widget not appearing:
- Confirm you are logged into WordPress and browsing the frontend (not wp-admin)
- Go to Settings → Lantern and confirm an embed key is saved
- Check the page source for the
<script src="https://lanternhq.app/widget.js" ...>tag - Open the browser console and look for errors
Settings page not visible:
- Confirm the plugin is activated (not just installed)
- Confirm your WordPress user has Administrator access
Conflict with other plugins:
- Some caching plugins may cache the page before the widget script is injected. Clear all caches after installing the Lantern plugin.
- If using a Content Security Policy plugin, ensure
lanternhq.appis allowed as a script source.