# Altering sidebar template from remote theme

**URL:** <https://meta.discourse.org/t/altering-sidebar-template-from-remote-theme/246490>\
**Category:** Development\
**Tags:** sidebar\
**Created:** [November 23, 2022, 1:15am UTC](https://meta.discourse.org/t/altering-sidebar-template-from-remote-theme/246490 "2022-11-23T01:15:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kaden-stytch](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@kaden-stytch](https://meta.discourse.org/u/kaden-stytch)\
**Post date:** [November 23, 2022, 1:15am UTC](https://meta.discourse.org/t/altering-sidebar-template-from-remote-theme/246490/1 "2022-11-23T01:15:21Z")

</div>

Hi!  
I have a remote theme and I would like to override the `components/sidebar/common/community-section` template or component. I’ve tried overriding the handlebars template in my remote theme with `/javascripts/discourse/sidebar/common/community-section.hbs`, but that doesn’t seem to work. I also tried using `api.modifyClass("component:sidebar/common/community-section", ...)` but that also doesn’t seem to register.

Why the handlebars templates are in this directory instead of the `templates` directory? And, do you have any suggestions on how I can alter this component/template or if I’m doing something wrong?

---

_[View the full topic](https://meta.discourse.org/t/altering-sidebar-template-from-remote-theme/246490)._
