# Customize template used by post widget

**URL:** https://meta.discourse.org/t/customize-template-used-by-post-widget/97168
**Category:** Development
**Created:** [September 14, 2018, 5:53am UTC](https://meta.discourse.org/t/customize-template-used-by-post-widget/97168 "2018-09-14T05:53:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 14, 2018, 10:58am UTC](https://meta.discourse.org/t/customize-template-used-by-post-widget/97168/2 "2018-09-14T10:58:42Z")

</div>

The best way to modify the post templates is to use the `decorateWidget` method in the plugin API. You can use that to add content before/after the built-in template. There are some brief instructions [here](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c-6) for doing that in a theme.

To fully override the template you would use `reopenWidget` to override the `html()` method. Some instructions are [here](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648/1#heading--4-c-5).

Adding things before/after is a far more ‘future proof’ way to work, so try and do that if you can. If you have some specifics on what you want to change about the post layout, I’m sure someone will be able to give some more specific advice.

---

_[View the full topic](https://meta.discourse.org/t/customize-template-used-by-post-widget/97168)._
