How do I add a custom widget in StreamElements?
Create an overlay in StreamElements, click + and choose Custom Widget from the STATIC/CUSTOM section. Select the widget, click OPEN EDITOR and paste the widget's code into its HTML, CSS, JS and FIELDS tabs.
Key takeaways
- A custom widget lives inside an overlay, so you need an overlay first.
- The editor has four tabs: HTML, CSS, JS and FIELDS. A widget you buy or download will tell you which code goes in which tab.
- Settings defined in FIELDS show up in the left panel, so you can change things like text and colors without touching code.
- StreamElements runs widget JavaScript in a protected sandbox. Still, only paste code from a source you trust.
Step 1: create an overlay
From StreamElements' overlay getting started guide:
- Go to Overlays in your StreamElements dashboard.
- Click New overlay.
- Choose a resolution and click START. StreamElements says it should match your stream's resolution.
Step 2: add the custom widget
From StreamElements' custom widget guide:
- In the overlay editor, click +.
- In the STATIC/CUSTOM section, select Custom Widget.
- Select the widget and click OPEN EDITOR in the left panel.
- Paste each part of the code into its tab: HTML, CSS, JS and FIELDS.
- Adjust the widget's settings in the left panel and watch the widget update in the editor preview.
Step 3: show it on stream
Save the overlay, then add it to OBS. StreamElements' overlays guide covers this:
- Go to Streaming Tools > Overlays, click the three dots on your overlay and click Copy URL.
- In OBS, add a Browser source and paste the URL.
- Set Width to 1920 and Height to 1080 and leave Custom CSS as default.
Keep that URL private. StreamElements calls overlay tokens sensitive information.
Want a widget with personality? The full guide How to add a chat pet to your Twitch stream with StreamElements walks through a chat pet from start to finish, or browse all streaming FAQs.