# Add script before footer

**URL:** https://meta.discourse.org/t/add-script-before-footer/109058
**Category:** Support
**Created:** [February 13, 2019, 5:25pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058 "2019-02-13T17:25:04Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 13, 2019, 5:25pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/1 "2019-02-13T17:25:04Z")

</div>

Hi,

I found a website [elfsight.com](http://elfsight.com) that basically allows you to use website widgets.

I am still now playing and learning about coding and so on, so do not blameme.

I would love to be able to include a instagram carousel of the pictures of my account as I could do with wordpress. I received this code that should show the widget.

I tried to add it on the /body section of the personalization, but i can’t make it work.

Is there any idea about how to do it?

Thanks!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 13, 2019, 5:28pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/2 "2019-02-13T17:28:02Z")

</div>

> [@ElForoViajero](#):
>
> I received this code that should show the widget.

Please share this code so we are able to help you using it.

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 13, 2019, 6:16pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/3 "2019-02-13T18:16:33Z")

</div>

sorry, when I copy it here it gets erased:

script src=“[https://apps.elfsight.com/p/platform.js](https://apps.elfsight.com/p/platform.js)” defer\> /script\>  
div class=“elfsight-app-77eb9f9f-f46b-4c77-a30c-39a9d72b446a”\>/div\>

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 13, 2019, 6:19pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/4 "2019-02-13T18:19:21Z")

</div>

Put it between backticks

````plaintext
    ```
    script here
    ```

````

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 13, 2019, 6:22pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/5 "2019-02-13T18:22:57Z")

</div>

```plaintext
<script src="https://apps.elfsight.com/p/platform.js" defer></script>
<div class="elfsight-app-77eb9f9f-f46b-4c77-a30c-39a9d72b446a"></div>

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 13, 2019, 6:38pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/6 "2019-02-13T18:38:14Z")

</div>

I can get it to work fine on [https://codepen.io/anon/pen/bzjzaR](https://codepen.io/anon/pen/bzjzaR)

But it fails on [https://theme-creator.discourse.org/theme/Falco/instagram-feed](https://theme-creator.discourse.org/theme/Falco/instagram-feed)

Do you have any settings to allow domains to use it in the Elfsight site?

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 13, 2019, 6:46pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/7 "2019-02-13T18:46:26Z")

</div>

No, there’s no way to add a domain. However, there’s a support line so I will ask over there too 🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 13, 2019, 6:48pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/8 "2019-02-13T18:48:12Z")

</div>

You can inform the error code at Theme Creator is `WIDGET_NOT_FOUND`

```
/**/__eappsPlatformBoot1550083652072({"status":1,"data":{"widgets":{"":{"status":0,"reason":"WIDGET_NOT_FOUND"}},"assets":[]}});

```

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 14, 2019, 12:43pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/9 "2019-02-14T12:43:58Z")

</div>

They told me to give them access to the forum to check.

In the meanwhile, maybe I was thinking about adding [this code](https://codepen.io/selcukcura/pen/GEJvrw), which has no limitations and then try to set the same image size for all images.

How would i be able to install this? thanks a lot!

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 15, 2019, 8:58am UTC](https://meta.discourse.org/t/add-script-before-footer/109058/10 "2019-02-15T08:58:40Z")

</div>

Hi @Falco any advice about the second script install? Thanks!

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 18, 2019, 10:47am UTC](https://meta.discourse.org/t/add-script-before-footer/109058/11 "2019-02-18T10:47:33Z")

</div>

Any idea how to add this? anyone else, besides @falco? Thanks!

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 19, 2019, 3:25pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/12 "2019-02-19T15:25:21Z")

</div>

Am I asking for something out to the support areas? It would be a great addition to be able to show instagram pictures of my community in the forum, @Falco can you give me some advice?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [February 19, 2019, 4:45pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/13 "2019-02-19T16:45:00Z")

</div>

Please stop tagging users repeatedly. If and when they have time to respond they will.

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 19, 2019, 5:12pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/14 "2019-02-19T17:12:27Z")

</div>

Sorry, I did not know I was not allowed to tag users every some days. I did not know either that the support replies IF they want or which is the timeline. I don’t think this is the best way to reply to customers trying to use the software also.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 19, 2019, 6:42pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/15 "2019-02-19T18:42:48Z")

</div>

Hey @ElForoViajero, sorry if I built wrong expectations for you.

> [@ElForoViajero](#):
>
> I don’t think this is the best way to reply to customers trying to use the software also.

If you are a customer of our hosting you can reach our customer support at [team@discourse.org](mailto:team@discourse.org).

Here at #Support we do offer support into configuring and using Discourse. Customization and basic use of HTML/CSS/JS is offered at a best effort from the community.

If you have a tight deadline (and a proportional budget) please post on the #Marketplace where great people like @pfaffman and @joebuhlig can help you out.

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [February 19, 2019, 7:02pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/16 "2019-02-19T19:02:27Z")

</div>

Thanks for ur reply, don’t get me wrong, I am enjoying a lot using discourse and I’m speaking about it to all colleagues. This was of course not something I need with rush, but i thought it could be a nice addition. I just thought that the way of letting us know how support works was not the nicest, sorry for tagging to often. Thanks!

---

<div class="post-metadata">

### Author: ![Paracelsus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paracelsus/32/164912_2.png) [@Paracelsus](https://meta.discourse.org/u/Paracelsus)
#### Post date: [November 11, 2020, 11:07am UTC](https://meta.discourse.org/t/add-script-before-footer/109058/17 "2020-11-11T11:07:21Z")

</div>

@ElForoViajero how did you get the elfsight script to work on your site?

This one:

> [@Add script before footer](https://meta.discourse.org/t/add-script-before-footer/109058/5):
>
> \<script src="https://apps.elfsight.com/p/platform.js" defer\>\</script\> \<div class="elfsight-app-77eb9f9f-f46b-4c77-a30c-39a9d72b446a"\>\</div\>

---

<div class="post-metadata">

### Author: ![ElForoViajero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elforoviajero/32/187116_2.png) [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)
#### Post date: [November 15, 2020, 1:05pm UTC](https://meta.discourse.org/t/add-script-before-footer/109058/18 "2020-11-15T13:05:20Z")

</div>

add your code on the /head section of your theme 😉
