# Add elements or nodes

**URL:** https://meta.discourse.org/t/add-elements-or-nodes/51585
**Category:** Development
**Created:** [October 15, 2016, 12:45pm UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585 "2016-10-15T12:45:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [October 15, 2016, 12:45pm UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585/1 "2016-10-15T12:45:13Z")

</div>

I want to add some elements to my website with javascript and I want to form elements as tiles.how should I do add tiles (nodes) to my page?  
totally, Can we add nodes(elements) to discourse via plugin?

---

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [October 17, 2016, 5:38am UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585/2 "2016-10-17T05:38:39Z")

</div>

no answer?  
I need it

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 17, 2016, 11:31am UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585/3 "2016-10-17T11:31:22Z")

</div>

Can you mock up what you are wanting to do? I’m not sure I understand the end goal enough to make any suggestions.

---

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [October 18, 2016, 5:41am UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585/4 "2016-10-18T05:41:00Z")

</div>

I have a html code as element for example:  
\> var element = document.create(“div”);  
\> element.innerHTML = “\<h1.\>hello world”;  
and I want to insert this code after second "class=‘row’ " but I don’t know how to do this in discourse?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [October 18, 2016, 5:48am UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585/5 "2016-10-18T05:48:56Z")

</div>

I don’t know how extensive the DOM changes are that you have in mind to do, or if this is for your own site or to share with others.

But if relatively trivial and for your own site maybe an Admin → Customize would suffice. eg. the script part here:

[https://meta.discourse.org/t/apply-css-to-all-custom-non-badge-user-titles/51376/36?u=mittineague](https://meta.discourse.org/t/apply-css-to-all-custom-non-badge-user-titles/51376/36)
