# Discourse rimuove il tag ESI durante l'aggiunta di un footer personalizzato

**URL:** <https://meta.discourse.org/t/discourse-stripping-esi-tag-when-adding-custom-footer/91970>\
**Category:** Product Support\
**Created:** [10 Luglio 2018, 12:53pm UTC](https://meta.discourse.org/t/discourse-stripping-esi-tag-when-adding-custom-footer/91970 "2018-07-10T12:53:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Yarn](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yarn](https://meta.discourse.org/u/Yarn)\
**Post date:** [10 Luglio 2018, 12:53pm UTC](https://meta.discourse.org/t/discourse-stripping-esi-tag-when-adding-custom-footer/91970/1 "2018-07-10T12:53:19Z")

</div>

We use Varnish to serve a common header and footer for our site using ESI tags. These look something like:

```
<esi:include src="http://www.xyz.abc/esi_parts/footer" />

```

When discourse serveres the page back to Varnish it will inject the content into the page. However when we customize our theme (using the editor within the admin panel) and add the line above to the footer then on page load we see in the page source that its converted the above to:

```
<include src="http://www.xyz.abc/esi_parts/footer"></include>

```

Or sometimes (it seems random) it doesn’t show up in the page source at all.

Is there some parser that is mangling/removing it and if so how can we disable it or workaround it?

---

_[View the full topic](https://meta.discourse.org/t/discourse-stripping-esi-tag-when-adding-custom-footer/91970)._
