# Updating a snippet in many posts at once

**URL:** <https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822>\
**Category:** Developer help\
**Created:** [January 29, 2021, 12:14am UTC](https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822 "2021-01-29T00:14:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter5](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Peter5](https://forum.ghost.org/u/Peter5)\
**Post date:** [January 29, 2021, 12:14am UTC](https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822/1 "2021-01-29T00:14:45Z")

</div>

I have created a snippet and saved it.

I use this on many blog posts by adding the snippet.

Now I want to update the snippet and have it change on all the places I put it.

How can I do this?

(This is very useful for me to change information in one place instead of many)

---

<div class="post-metadata">

**Author:** ![Stromfeldt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stromfeldt/32/13572_2.png) [@Stromfeldt](https://forum.ghost.org/u/Stromfeldt)\
**Post date:** [January 29, 2021, 12:18am UTC](https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822/2 "2021-01-29T00:18:22Z")

</div>

Snippets don’t allow for that. Check out [Kevin’s solution](https://forum.ghost.org/t/add-partial-inside-of-content/18518/8) (although I believe `elem.innerHtml` should be `elem.innerHTML`).

---

<div class="post-metadata">

**Author:** ![Peter5](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Peter5](https://forum.ghost.org/u/Peter5)\
**Post date:** [January 29, 2021, 1:38am UTC](https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822/3 "2021-01-29T01:38:59Z")

</div>

Thanks that workout was great!

---

<div class="post-metadata">

**Author:** ![rettx](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rettx/32/13673_2.png) [@rettx](https://forum.ghost.org/u/rettx)\
**Post date:** [February 26, 2022, 3:32pm UTC](https://forum.ghost.org/t/updating-a-snippet-in-many-posts-at-once/19822/4 "2022-02-26T15:32:21Z")

</div>

Where are these saved if I were to self host ghost? I assume in the database and if I wanted to update the snippet I could overwrite the record?
