# Request: House Ads Plugin

**URL:** https://meta.discourse.org/t/request-house-ads-plugin/75532
**Category:** Feature
**Created:** [December 6, 2017, 10:11am UTC](https://meta.discourse.org/t/request-house-ads-plugin/75532 "2017-12-06T10:11:37Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [August 1, 2018, 8:56pm UTC](https://meta.discourse.org/t/request-house-ads-plugin/75532/3 "2018-08-01T20:56:17Z")

</div>

I thought of this request again, and it turns out that it’s fairly simple to implement without a plugin now by using [Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b).

 ![Admin-Localhost_Discourse](https://global.discourse-cdn.com/meta/original/4X/6/7/b/67b8efccade661d912e29963339c71562e85bb62.png)

 ![Admin_Localhost_Discourse_2](https://global.discourse-cdn.com/meta/original/4X/b/e/0/be00c946c1eec6aaf200bd57d922c5f85f904ddc.png)

The code for placing an ad above topics, and after every 3 posts:

```plaintext
<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/my-house-ads">
<div style="margin-bottom:10px;">
  <a href="http://www.discourse.org/buy">
    Discourse Hosting For YOU!
  </a>
</div>
</script>

<script type="text/discourse-plugin" version="0.8.23">
    api.decorateWidget('post:after', helper => {
        let post = helper.getModel();
        if (post.get('post_number') % 3 === 0) { // after every 3 posts
            return helper.rawHtml(`
<div style="margin-bottom:10px">
  <a href="http://www.discourse.org/buy">
    Discourse Hosting For YOU!
  </a>
</div>
            `);
        }
    });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/request-house-ads-plugin/75532)._
