# Is there a way to add code to 'head' globally, but with an exception for homepage?

**URL:** <https://forums.realmacsoftware.com/t/is-there-a-way-to-add-code-to-head-globally-but-with-an-exception-for-homepage/42933>\
**Category:** RapidWeaver Classic\
**Created:** [March 28, 2024, 11:34am UTC](https://forums.realmacsoftware.com/t/is-there-a-way-to-add-code-to-head-globally-but-with-an-exception-for-homepage/42933 "2024-03-28T11:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbob](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jbob/32/31581_2.png) [@jbob](https://forums.realmacsoftware.com/u/jbob)\
**Post date:** [March 28, 2024, 11:34am UTC](https://forums.realmacsoftware.com/t/is-there-a-way-to-add-code-to-head-globally-but-with-an-exception-for-homepage/42933/1 "2024-03-28T11:34:10Z")

</div>

Is there a way to add code to ‘head’ globally, but with an exception for homepage ?

Thanks, Jol

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 28, 2024, 1:54pm UTC](https://forums.realmacsoftware.com/t/is-there-a-way-to-add-code-to-head-globally-but-with-an-exception-for-homepage/42933/2 "2024-03-28T13:54:19Z")

</div>

Hmmm, you could put the code in the head area of each page you want it to appear on (instead of the global area). I know this is a bit annoying, but it’d do the job for you!

 ![CleanShot 2024-03-28 at 1 .53.36@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/8/c/8c4dcb6339b86a1e772d6cd047c77542f7b26df3.jpeg)

---

<div class="post-metadata">

**Author:** ![jbob](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jbob/32/31581_2.png) [@jbob](https://forums.realmacsoftware.com/u/jbob)\
**Post date:** [March 28, 2024, 1:55pm UTC](https://forums.realmacsoftware.com/t/is-there-a-way-to-add-code-to-head-globally-but-with-an-exception-for-homepage/42933/3 "2024-03-28T13:55:43Z")

</div>

Thanks yes, I just wondered if there was a smarter way : )
