# 广告横幅/HTML代码在右侧边栏

**URL:** https://meta.discourse.org/t/ad-banner-html-code-in-the-right-gutter/238867
**Category:** Support
**Tags:** advertising
**Created:** [2022年九月13日 11:38 UTC](https://meta.discourse.org/t/ad-banner-html-code-in-the-right-gutter/238867 "2022-09-13T11:38:39Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2022年十月11日 14:12 UTC](https://meta.discourse.org/t/ad-banner-html-code-in-the-right-gutter/238867/4 "2022-10-11T14:12:46Z")

</div>

可以在时间线上方放置一些内容，例如，Car Talk 在此处的其时间线上方有一些建议：[Battery finally dead - Maintenance/Repairs - Car Talk Community](https://community.cartalk.com/t/battery-finally-dead/186792) （但请注意，它在滚动时不会固定）

这在他们的主题中是通过向 Discourse 中的 `above-timeline` 插件出口添加内容来完成的。我们不打算在广告插件中默认在时间线上方/下方添加广告位，因此需要通过自定义插件或主题来完成。

此处对在主题中使用插件出口进行了少量介绍：[Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#handlebars-templates-21)

---

_[View the full topic](https://meta.discourse.org/t/ad-banner-html-code-in-the-right-gutter/238867)._
