# Enable Dev Tools Button

**URL:** https://meta.discourse.org/t/enable-dev-tools-button/350803
**Category:** Theme component
**Created:** [February 6, 2025, 5:15am UTC](https://meta.discourse.org/t/enable-dev-tools-button/350803 "2025-02-06T05:15:40Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 6, 2025, 5:15am UTC](https://meta.discourse.org/t/enable-dev-tools-button/350803/1 "2025-02-06T05:15:41Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Adds a button to the site header to enable Dev Tools |
| 👓 | **Preview** | [https://discourse.theme-creator.io/theme/NateDhaliwal/enable-dev-tools-button](https://discourse.theme-creator.io/theme/NateDhaliwal/enable-dev-tools-button) |
| 🛠 | **Repository** | [GitHub - NateDhaliwal/Enable-Dev-Tools-Button · GitHub](https://github.com/NateDhaliwal/Enable-Dev-Tools-Button) |
| ❓ | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

This Theme Component adds a button to the site header to enable the [Developer Tools](https://meta.discourse.org/t/introducing-discourse-developer-toolbar/346215). When Dev Tools are not enabled, the button is the normal `bug` icon. When it is enabled, it is at the `bug-slash` icon.

Before enabling:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/f/b/d/fbd8cfee4b2ab8322a95bf0c37c5370c47404b4e.png)

After enabling:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/6/c/8/6c88da6fb1205b18a2697f3a8986aba3c2581eb2.png)

The button should remain at its respective state even when the page is closed, as it uses `localStorage`.

---

_[View the full topic](https://meta.discourse.org/t/enable-dev-tools-button/350803)._
