Add elements or nodes

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?

no answer?
I need it

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

3 Likes

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?

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

3 Likes