# Disable the ability to unpin a topic by clicking on the toggle (pin icon)

**URL:** https://meta.discourse.org/t/disable-the-ability-to-unpin-a-topic-by-clicking-on-the-toggle-pin-icon/393585
**Category:** Development
**Tags:** pinned-topics
**Created:** [15 januari 2026 om 19:27 UTC](https://meta.discourse.org/t/disable-the-ability-to-unpin-a-topic-by-clicking-on-the-toggle-pin-icon/393585 "2026-01-15T19:27:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [16 januari 2026 om 01:14 UTC](https://meta.discourse.org/t/disable-the-ability-to-unpin-a-topic-by-clicking-on-the-toggle-pin-icon/393585/2 "2026-01-16T01:14:41Z")

</div>

Thank you nice add I have removed your quotes and added before and after your block [```] remove brackets. You can also alternatively use “Code” and “/code” in square brackets

> [@Denis\_Advert](#):
>
> Maybe someone will need it
> 
> Simply insert the code into the theme component, in the CSS section
> 
> Don’t forget to connect the component to your theme
> 
> ```plaintext
> a.pin-toggle-button {
> pointer-events: none !important;
> cursor: not-allowed !important;
> opacity: 0.6;
> }
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/disable-the-ability-to-unpin-a-topic-by-clicking-on-the-toggle-pin-icon/393585)._
