# Page settings Body End and @portal(bodyEnd)

**URL:** <https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021>\
**Category:** Elements API\
**Created:** [January 21, 2025, 4:37pm UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021 "2025-01-21T16:37:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibralogix](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/vibralogix/32/3065_2.png) [@vibralogix](https://forums.realmacsoftware.com/u/vibralogix)\
**Post date:** [January 21, 2025, 4:37pm UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/1 "2025-01-21T16:37:54Z")

</div>

I noticed that code set to be placed at the body end (i.e just before ) using either the page settings or the @portal(bodyEnd) in a custom element is being placed higher up inside a div or two instead of before the . This may not matter in most cases but is affecting a full screen fixed modal.

Is there a reason for that or will that get fixed?

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [January 21, 2025, 5:20pm UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/2 "2025-01-21T17:20:49Z")

</div>

Hi @vibralogix,

I’ve just tested this here and can’t reproduce. Do you have a sample project you could upload to Elements Cloud showing the issue?

Also, it’s worth double checking your project’s template in the site settings area as this can affect the placement.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/0/d/0d1937f04d810d5ee030754e9bf1fb31e9125f39.jpeg)

---

<div class="post-metadata">

**Author:** ![vibralogix](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/vibralogix/32/3065_2.png) [@vibralogix](https://forums.realmacsoftware.com/u/vibralogix)\
**Post date:** [January 21, 2025, 5:47pm UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/3 "2025-01-21T17:47:06Z")

</div>

Hi @tpbradley

Thanks for taking a look. I just made new project and of course it seems to work exactly as it should. It must be something I have messed up in my project somewhere. There is a lot of stuff in there! I will make some more tests and let you know if I can reproduce it on a simpler project.

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [January 21, 2025, 5:48pm UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/4 "2025-01-21T17:48:56Z")

</div>

Perfect! Just let us know if you’re able to reproduce it.

Cheers

---

<div class="post-metadata">

**Author:** ![vibralogix](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/vibralogix/32/3065_2.png) [@vibralogix](https://forums.realmacsoftware.com/u/vibralogix)\
**Post date:** [January 22, 2025, 9:07am UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/5 "2025-01-22T09:07:33Z")

</div>

I found the issue. My custom component had `<div>` in place of `</div>` which cause that (not surprising!).

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [January 22, 2025, 9:10am UTC](https://forums.realmacsoftware.com/t/page-settings-body-end-and-portal-bodyend/46021/6 "2025-01-22T09:10:29Z")

</div>

Ah hah! That’ll do it! Good find.
