# Template node with size=zero

**URL:** <https://discourse.nodered.org/t/template-node-with-size-zero/90305>\
**Category:** Dashboard\
**Created:** [21 August 2024 09:01 UTC](https://discourse.nodered.org/t/template-node-with-size-zero/90305 "2024-08-21T09:01:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)\
**Post date:** [21 August 2024 09:01 UTC](https://discourse.nodered.org/t/template-node-with-size-zero/90305/1 "2024-08-21T09:01:26Z")

</div>

I have a dashboard (2.0) using template nodes. I split the JS script across multiple templates nodes, to allow a modular architecture and let each template send/receive only the messages it needs.

All works perfectly. However, even though these templates have only a `<script>` section and no UI elements, each one consumes at least 1x1 screen space. Is there a way to make them completely invisible, like CSS templates?

I tried assigning the templates to a "Hidden" group, but this group still appears as an empty space on the page.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 August 2024 18:30 UTC](https://discourse.nodered.org/t/template-node-with-size-zero/90305/2 "2024-08-21T18:30:29Z")

</div>

Try setting the class to `d-none`

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 August 2024 17:13 UTC](https://discourse.nodered.org/t/template-node-with-size-zero/90305/3 "2024-08-22T17:13:44Z")

</div>

A post was split to a new topic: [Override a widgets default container (Div) and "plug" it into a specified Div](https://discourse.nodered.org/t/override-a-widgets-default-container-div-and-plug-it-into-a-specified-div/90343)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 September 2024 17:14 UTC](https://discourse.nodered.org/t/template-node-with-size-zero/90305/4 "2024-09-05T17:14:29Z")

</div>

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