# Is Gleam/JavaScript embed code supported?

**URL:** https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765
**Category:** Development
**Created:** [November 6, 2019, 5:47pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765 "2019-11-06T17:47:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)
#### Post date: [November 6, 2019, 5:47pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/1 "2019-11-06T17:47:05Z")

</div>

Does Discourse supports hosting Gleam giveaways? Gleam provides HTML embed code, but I tried it in a Discourse post and I couldn’t get it to work/display.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [November 6, 2019, 5:56pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/2 "2019-11-06T17:56:24Z")

</div>

The short answer is yes! Everything I see [here](https://gleam.io/docs/competitions/install) can be done in a theme component. The amount of work required on your end depends on which method you want to use.

---

<div class="post-metadata">

### Author: ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)
#### Post date: [November 6, 2019, 9:21pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/3 "2019-11-06T21:21:11Z")

</div>

In theory it does yes, but when I put the HTML embed code into a topics post, the Gleam widget doesn’t load.

---

<div class="post-metadata">

### Author: ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)
#### Post date: [November 9, 2019, 5:54pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/4 "2019-11-09T17:54:18Z")

</div>

This is all I see, instead of the Gleam widget. It’s just standard embed HTML provided from Gleam too, which works fine on a WordPress site.

 ![04](https://global.discourse-cdn.com/meta/original/3X/d/3/d3d436575ce7875bc1911f2b3914c8c368a91085.png)

---

<div class="post-metadata">

### Author: ![christian\_01](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_01/32/162392_2.png) [@christian\_01](https://meta.discourse.org/u/christian_01)
#### Post date: [November 18, 2019, 11:12am UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/5 "2019-11-18T11:12:51Z")

</div>

It looks like Discourse doesn’t support JavaScript in Topics.

Is there a workaround?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 18, 2019, 10:50pm UTC](https://meta.discourse.org/t/is-gleam-javascript-embed-code-supported/132765/8 "2019-11-18T22:50:07Z")

</div>

We do support JS in topics, you just need to write a theme component that decorates the posts according to rules you set.

This will require developer help. I recommend you post in #Marketplace
