# How to override a template.hbs from a plugin

**URL:** https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556
**Category:** Development
**Created:** [22 juni 2020 om 13:02 UTC](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556 "2020-06-22T13:02:04Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [23 juli 2024 om 14:45 UTC](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556/7 "2024-07-23T14:45:09Z")

</div>

> [@(not recommended) Overriding Discourse templates from a Theme or Plugin](https://meta.discourse.org/t/deprecated-overriding-discourse-templates-from-a-theme-or-plugin/247487):
>
> Ideally, when customizing Discourse via themes/plugins, you should use CSS, [the JavaScript Plugin API](https://meta.discourse.org/t/a-new-versioned-api-for-client-side-plugins/40051), or [plugin outlets](https://meta.discourse.org/t/connect-your-theme-to-plugin-outlets-to-inject-templates-with-custom-content/32727). If none of these work for your use-case, feel free to open a PR to Discourse core or start a #Development topic here on Meta. We’re always happy to discuss adding new outlets/APIs to make customization easier. If you’ve exhausted all other options, you may need to resort to template overrides. This technique allows you to override the entire template of any Ember Component or…

---

_[View the full topic](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556)._
