# Header custom code to a specific page

**URL:** <https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409>\
**Category:** How do I?\
**Created:** [July 27, 2025, 2:53pm UTC](https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409 "2025-07-27T14:53:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![attlas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/attlas/32/13956_2.png) [@attlas](https://community.weweb.io/u/attlas)\
**Post date:** [July 27, 2025, 2:53pm UTC](https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409/1 "2025-07-27T14:53:10Z")

</div>

Hi, I’d like some clarification. I thought the custom code for each page was truly specific to that page. However, when I add a script, it appears on all the pages of the site.

I want the iframe to appear only on this particular page.

Does anyone know how to set this up correctly ?

 ![CleanShot 2025-07-27 at 11.25.52](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/ba0b8a0fbdacc259fe7dc13e647d28c6451944ee.jpeg)

---

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [July 28, 2025, 3:18pm UTC](https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409/2 "2025-07-28T15:18:07Z")

</div>

Hi Yann 👋

Indeed this code is only supposed to be executed in this page.  
Why do you think it is executing in other pages as well?

On another note, if you want to use an Iframe we have a specific element that you can use in your project;

 ![Screenshot 2025-07-28 at 12.20.17](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7ab204fd6b41173f3338de537925e8241769e2b9.png)

---

<div class="post-metadata">

**Author:** ![attlas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/attlas/32/13956_2.png) [@attlas](https://community.weweb.io/u/attlas)\
**Post date:** [July 28, 2025, 6:34pm UTC](https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409/3 "2025-07-28T18:34:45Z")

</div>

Thanks @Agustin_Carozo for the answer.

But as I said, when I put the script in the header of a specific page, the script content (chat) shows up on every page.

An iframe isn’t relevant in my case. What I need is like a bubble chat in the page from the script not an iframe.

Just tried again now, it’s really not working on specific pages like the home

---

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [July 29, 2025, 2:58pm UTC](https://community.weweb.io/t/header-custom-code-to-a-specific-page/19409/4 "2025-07-29T14:58:18Z")

</div>

Let me check with the team to see if we have an answer for this or if you need to submit a bug report
