# How to Add ElevenLabs Audio to Every Ghost Post

**URL:** <https://forum.ghost.org/t/how-to-add-elevenlabs-audio-to-every-ghost-post/63801>\
**Category:** Integrations & API\
**Created:** [September 19, 2026, 5:25pm UTC](https://forum.ghost.org/t/how-to-add-elevenlabs-audio-to-every-ghost-post/63801 "2026-09-19T17:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcarneiro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bcarneiro/32/36033_2.png) [@bcarneiro](https://forum.ghost.org/u/bcarneiro)\
**Post date:** [September 19, 2026, 5:25pm UTC](https://forum.ghost.org/t/how-to-add-elevenlabs-audio-to-every-ghost-post/63801/1 "2026-09-19T17:25:32Z")

</div>

# How to Add ElevenLabs Audio to Every Ghost Post

I wanted one simple thing:

**Every Ghost post should have a “Listen” button.**

I did not want to paste ElevenLabs code into every post manually.

The solution was much simpler:

**Set up ElevenLabs Audio Native once, then add one script to Ghost Code Injection.**

That’s it.

Here’s how.

### 1. Set up Audio Native in ElevenLabs

In ElevenLabs, open **Audio Native**.

Choose the voice you want.

Then add your Ghost domain under **Allowed Sites**.

Example:

```auto
https://yourblog.com

```

Then click **Get Embed Code**.

You’ll see something containing:

```auto
data-publicuserid="YOUR_ID_HERE"

```

Copy that long ID.

Do not use your ElevenLabs API key.

### 2. Test it on one Ghost post first

Open one post in Ghost.

Add an **HTML card** near the top of the article:

**+ → HTML**

Paste the ElevenLabs embed code into that HTML card.

Publish/update the post.

Open the live post.

You may initially see:

**Converting the page to audio…**

Give it a minute or two.

Then the ElevenLabs player should appear.

Press Play.

If it works, move on.

### 3. Add it to every post automatically

Now go to:

**Ghost → Settings → Advanced → Code Injection → Site Footer**

Paste this:

```auto
<style>
.elevenlabs-ghost-player {
    width: 100%;
    margin: 24px 0 32px;
}
</style>

<script>
(function () {

    if (!document.body.classList.contains('post-template')) {
        return;
    }

    if (document.getElementById('elevenlabs-audionative-widget')) {
        return;
    }

    const content =
        document.querySelector('.gh-content') ||
        document.querySelector('.post-content') ||
        document.querySelector('.article-content');

    if (!content) return;

    const wrapper = document.createElement('div');

    wrapper.className = 'elevenlabs-ghost-player';

    wrapper.innerHTML = `
        <div
            id="elevenlabs-audionative-widget"
            data-height="90"
            data-width="100%"
            data-frameborder="no"
            data-scrolling="no"
            data-publicuserid="YOUR_PUBLIC_USER_ID"
            data-playerurl="https://elevenlabs.io/player/index.html"
        >
            Loading audio...
        </div>
    `;

    content.insertBefore(wrapper, content.firstChild);

    if (!document.querySelector('script[src*="audioNativeHelper.js"]')) {
        const script = document.createElement('script');
        script.src = 'https://elevenlabs.io/player/audioNativeHelper.js';
        script.async = true;
        document.body.appendChild(script);
    }

})();
</script>

```

Replace:

```auto
YOUR_PUBLIC_USER_ID

```

with the ID you copied from ElevenLabs.

Click **Save**.

### 4. You’re done

Now every Ghost post gets the ElevenLabs player automatically.

You do not need to:

- edit every old post

- add a new embed every time you publish

- build an API

- use GitHub

- run your own server

The same Ghost Code Injection works for old posts and future posts.

One final tip: open your old posts once after installing this. That lets ElevenLabs generate the audio ahead of time, so readers don’t see the initial **“Converting the page to audio…”** message.

I tested this across **35 Ghost essays** , and all 35 ended up with working audio.

That’s the whole setup.

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [September 21, 2026, 3:37pm UTC](https://forum.ghost.org/t/how-to-add-elevenlabs-audio-to-every-ghost-post/63801/2 "2026-09-21T15:37:38Z")

</div>

Looked at the Eleven Labs site – don’t see “Audio Native” anywhere. Is it under something else?

---

<div class="post-metadata">

**Author:** ![bcarneiro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bcarneiro/32/36033_2.png) [@bcarneiro](https://forum.ghost.org/u/bcarneiro)\
**Post date:** [September 21, 2026, 6:17pm UTC](https://forum.ghost.org/t/how-to-add-elevenlabs-audio-to-every-ghost-post/63801/3 "2026-09-21T18:17:54Z")

</div>

[https://elevenlabs.io/app/audio-native](https://elevenlabs.io/app/audio-native)

It works great!
