# Open the login popup Or trigger event when button is pressed

**URL:** https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385
**Category:** Development
**Created:** [December 18, 2019, 8:29am UTC](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385 "2019-12-18T08:29:50Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 11, 2024, 2:20pm UTC](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385/7 "2024-03-11T14:20:52Z")

</div>

You can create a new Theme component and attach it to your theme.

- Go to Admin → Customize

- Click on Install button  

- Then attach it to your theme and click on Edit CSS/HTML button  

- You add code in `Head` section:  

Hope that helps. :+1:

---

_[View the full topic](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385)._
