How to Add a Custom Widget to StreamElements and OBS (Step by Step)

A custom widget is a small web overlay, such as a now-playing music box or a chat effect, that runs inside StreamElements and shows up in your stream through a browser source. Setup takes about ten minutes the first time and about two after that. Here is the whole process.
What you need
- A free StreamElements account (and any account your widget needs, for example Last.fm for a music widget).
- OBS Studio, Streamlabs Desktop or any streaming software that supports a browser source.
- The widget files: usually HTML, CSS, JS and Fields. Our widgets include all four plus a written guide.
Step 1: create an overlay in StreamElements
- Log in to StreamElements and open Streaming Tools → My Overlays.
- Create a New Overlay (or open an existing one). Keep the default 1920 x 1080 canvas.
Step 2: add a custom widget
- Click Add Widget, choose Custom and then Custom Widget.
- Select the new widget and click Open Editor.
Step 3: paste the four files
The editor has separate tabs. Paste each file into its own tab and replace everything that was there:
- HTML tab: the HTML file
- CSS tab: the CSS file
- JS tab: the JavaScript file
- Fields tab: the Fields file (this creates the settings panel for colours, sizes and options)
Click Done. Your settings appear on the left, where you can adjust the widget without touching code. Most widgets include test buttons so you can preview every state before going live.
Step 4: copy the overlay link
Click the overlay Copy link button. Treat this URL like a password. Anyone who has it can use your overlay, so never post it in chat or on stream.
Step 5: show it in OBS Studio
- In OBS, press + under Sources and choose Browser.
- Paste the overlay URL and set the size to 1920 x 1080 to match the canvas.
- Press OK, then move and scale the overlay layer as you like.
Streamlabs Desktop: add a Browser Source the same way (Sources → + → Browser Source) and paste the same URL.
Fixes for the most common problems
- Nothing shows up: check that the URL is complete and the browser source width and height are set. Refresh the source’s cache from its properties.
- The widget looks cut off: the source size does not match the overlay canvas. Use 1920 x 1080.
- Changes do not appear: save the widget in StreamElements and refresh the browser source.
- Music widget shows no song: make sure your music service is connected (for example through a Last.fm scrobbler) and playing.
Want a widget that is ready to go?
Browse our animated Twitch widgets. Each one has a live demo, an instant download and a step-by-step setup guide. Try the Lazy Cat music widget if you want a now-playing overlay, or order a custom widget built around your own character.
Frequently asked questions
Do I need a paid StreamElements plan?
No. A free account is enough to add and run custom widgets.
Does the widget work with Streamlabs and YouTube?
Yes. The overlay runs as a browser source, so it works in any software that supports one, for Twitch, YouTube or Kick streams.
How long does setup take?
About ten minutes the first time, following the guide that comes with the widget.
Frequently asked questions
Do I need to know how to code to use a custom widget?
No. You paste four files into the editor and use the settings panel to change colours, sizes and options. Most widgets also include test buttons so you can preview every state.
Why does my widget show nothing in OBS?
The most common causes are a wrong browser source size (use 1920 x 1080), a missing file in one of the editor tabs, or an overlay link that was copied before the widget was saved. Re-copy the link after pressing Done.
Can I use the same widget on Streamlabs?
Yes. The overlay link works as a browser source in Streamlabs Desktop in the same way as in OBS.
Related guides
- Best Twitch widgets: music, chat and game widgets
- Twitch overlay setup in OBS: scenes and starting soon screen
- Browse all Twitch widgets
Setting up a music widget? See the now-playing music widget guide.



