# Как добавить контент (HTML) под сообщениями?

**URL:** https://meta.discourse.org/t/how-to-add-content-html-below-posts/334537
**Category:** Development
**Created:** [05.Ноябрь.2024 04:02:18 UTC](https://meta.discourse.org/t/how-to-add-content-html-below-posts/334537 "2024-11-05T04:02:18Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![hoangviet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hoangviet/32/174417_2.png) [@hoangviet](https://meta.discourse.org/u/hoangviet)
#### Post date: [05.Ноябрь.2024 05:02:35 UTC](https://meta.discourse.org/t/how-to-add-content-html-below-posts/334537/3 "2024-11-05T05:02:35Z")

</div>

Я нашел здесь тему с учебным пособием по этому вопросу.  
Но я беспокоюсь, что блокировщики рекламы могут скрыть содержимое (html) ниже этих постов.

> [@How to add customer HTML after "post\_1"](https://meta.discourse.org/t/how-to-add-customer-html-after-post-1/123068/2?u=hoangviet):
>
> Posts are [widgets](https://meta.discourse.org/t/a-tour-of-how-the-widget-virtual-dom-code-in-discourse-works/40347) which means what you’re trying to do will involve a bit more work that just adding html. Discourse themes have the ability to [decorate widgets](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c-6) so you can leverage on that. Decorating a widget is explained in the link above so let’s focus on what you’re trying to do - add markup after the first post in every topic. Start by adding the markup to all posts. So something like this \<script type="text/discourse-plugin" version="0.8"\> api.decorateWidget("post:after", helper =\> { …

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-content-html-below-posts/334537)._
