# Adding partials to a theme - how to?

**URL:** <https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113>\
**Category:** Developer help\
**Created:** [March 29, 2024, 1:20am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113 "2024-03-29T01:20:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thunder](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thunder/32/29537_2.png) [@Thunder](https://forum.ghost.org/u/Thunder)\
**Post date:** [March 29, 2024, 1:20am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/1 "2024-03-29T01:20:48Z")

</div>

Running latest ghost and Starter theme, new to ghost theme development (but experienced front end developer)

I looked but didn’t find, how do I add partials to my theme?

According to the handlbars documentation at [Partials | Handlebars](https://handlebarsjs.com/guide/partials.html)

I have to make a call to registerPartial. But where would this go?

Is there something else I am missing?

Thanks for your assistance!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 29, 2024, 2:50am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/2 "2024-03-29T02:50:15Z")

</div>

Check out [Ghost Handlebars Theme Helpers: partials](https://ghost.org/docs/themes/helpers/partials/)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 29, 2024, 3:20am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/3 "2024-03-29T03:20:05Z")

</div>

Two tips, to go with Vikas’ great link:

1. Ghost’s version of handlebars is not the same as the handlebars documentation. You’re almost always going to be better off with the Ghost documentation.

2. When you add a new .hbs file, you’ll need to restart Ghost to get it recognized. (Not the case if uploading a whole theme zip file, but you’re probably not doing that in development… and if you are, I highly recommend that you switch over to local development so that you can edit the files and see changes immediately! Worth the time, if you’re going to develop a whole theme, for sure!)

---

<div class="post-metadata">

**Author:** ![Thunder](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thunder/32/29537_2.png) [@Thunder](https://forum.ghost.org/u/Thunder)\
**Post date:** [March 29, 2024, 3:28am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/4 "2024-03-29T03:28:22Z")

</div>

So just to be clear, all partials in the /partials directory are automatically available to the main template?

I’ll try that tomorrow. I thought I already did, but maybe I didn’t restart ghost. It makes sense I’ll have to in order to automatically pick them up.

Thanks again!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 29, 2024, 10:07am UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/5 "2024-03-29T10:07:45Z")

</div>

Correct. Put them in the partials folder, with a ,hbs extension. 🙂

Then you call them like {{\> your-partial }}

---

<div class="post-metadata">

**Author:** ![Thunder](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thunder/32/29537_2.png) [@Thunder](https://forum.ghost.org/u/Thunder)\
**Post date:** [March 29, 2024, 10:10pm UTC](https://forum.ghost.org/t/adding-partials-to-a-theme-how-to/46113/6 "2024-03-29T22:10:24Z")

</div>

Thanks, got it! It works!

@vikaspotluri123 thanks to you too!
