# Link sidebar buttons and scripts

**URL:** <https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541>\
**Category:** Development\
**Tags:** sidebar\
**Created:** [June 25, 2024, 11:43am UTC](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541 "2024-06-25T11:43:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Truest](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@Truest](https://meta.discourse.org/u/Truest)\
**Post date:** [June 29, 2024, 5:39pm UTC](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541/3 "2024-06-29T17:39:38Z")

</div>

```plaintext
<script>
api.addCommunitySectionLink({
  name: "unread",
  route: "discovery.unread",
  title: I18n.t("some.unread.title"),
  text: I18n.t("some.unread.text"),
  icon: "fa-envelope"
});
</script>

```

I put it in the HTML body section of the component like this, but it does not seem to be added to more. Is not it possible to do it this way?

---

_[View the full topic](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541)._
