# How do you add custom JS to a theme?

**URL:** https://meta.discourse.org/t/how-do-you-add-custom-js-to-a-theme/112764
**Category:** Support
**Created:** [3월 27, 2019, 11:33오후 UTC](https://meta.discourse.org/t/how-do-you-add-custom-js-to-a-theme/112764 "2019-03-27T23:33:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [3월 27, 2019, 11:49오후 UTC](https://meta.discourse.org/t/how-do-you-add-custom-js-to-a-theme/112764/2 "2019-03-27T23:49:25Z")

</div>

What do you mean by ‘doesn’t work’? Are you seeing errors in your browser’s console, or is the problem that the script isn’t doing what you are wanting it to do? If you can give us more information about what you are trying to accomplish, someone here will be able to point you in the right direction.

You can get some information about using javascript in themes from these topics:

- [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)
- [Using the JS API](https://meta.discourse.org/t/using-the-pluginapi-in-site-customizations/41281)

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-add-custom-js-to-a-theme/112764)._
