# Right Sidebar Blocks

**URL:** https://meta.discourse.org/t/right-sidebar-blocks/231067
**Category:** Theme component
**Tags:** official, desktop, right-sidebar-blocks
**Created:** [June 25, 2022, 2:55am UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067 "2022-06-25T02:55:24Z")
**Posts on this page:** 1
**Showing post:** 87

<div class="post-metadata">

### Author: ![bryce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryce/32/377822_2.png) [@bryce](https://meta.discourse.org/u/bryce)
#### Post date: [April 3, 2024, 4:56am UTC](https://meta.discourse.org/t/right-sidebar-blocks/231067/87 "2024-04-03T04:56:52Z")

</div>

> [@annetters](#):
>
> Is there a way to insert custom HTML by pointing to an independent HTML file that lives in a theme?

If you’re using the component with a custom theme, you could create a `.hbs` file in javascripts/discourse/components/ with the desired HTML, then instead of `custom-html` for the block use the name of a file (without the .hbs).

Edit: If anyone is wondering why we’d use `.hbs` instead of `.html` here, this method would create a custom [Ember.js](https://guides.emberjs.com/release/getting-started/) component that Right Sidebar Blocks can locate by name and use as one of the blocks. `.hbs` is a [handlebars](https://handlebarsjs.com/guide/) file. Handlebars is a “templating” language used by Ember.js that looks like HTML but lets you do things like inserting dynamic data, only showing an element based on a condition, or showing several copies of the same content filled with different data. If that sounds like fun, the [Beginner’s guide to developing Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648/1#handlebars-templates-21) goes into how to use hadlebars and Ember components in Discourse Themes.

---

_[View the full topic](https://meta.discourse.org/t/right-sidebar-blocks/231067)._
