# How to set script to a theme component?

**URL:** https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860
**Category:** Development
**Created:** [October 30, 2023, 3:59am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860 "2023-10-30T03:59:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### Post date: [October 30, 2023, 3:59am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860/1 "2023-10-30T03:59:59Z")

</div>

I want to add a `<script>` inside the theme, to customize the home logo hyper link, can I do this from the admin settings via browser ? or shall I dig into the files on the server? any idea ?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 30, 2023, 6:11am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860/2 "2023-10-30T06:11:49Z")

</div>

Hello 👋

You can do it with changing the home logo setting with API. 🙂

> [@(Superseded) Link to external site from the main Discourse logo](https://meta.discourse.org/t/link-to-external-site-from-the-main-discourse-logo/229347):
>
> information_source Discourse now offers an #official theme component to support this use case: play_button Original Content

---

<div class="post-metadata">

### Author: ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### Post date: [October 30, 2023, 6:35am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860/3 "2023-10-30T06:35:27Z")

</div>

Can you send me a link of how to implement this?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 30, 2023, 6:39am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860/4 "2023-10-30T06:39:24Z")

</div>

Please see the topic I attached to my reply. Everything explained nicely in that topic. 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 29, 2023, 6:39am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860/5 "2023-11-29T06:39:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
