Hi @ondrejvala!
I’m glad you like this plugin! 🙂 since it is built on React there’s no “hook” you can use to put your custom code.
You can use JavaScript to place it there after page load event instead, this is quite easy to implement on front-end, while a little bit hard to have the same result on Block editor (Gutenberg).
Do you want to put there just a simple HTML code?
Hi Bartosz,
thanks for your answer. Yeah, I know it’s build on React, I explored your source code. Because I need to insert closing tags like </div> before block (and some other opening again after), javascript method .before() is useless for me…
I simply need on frontend just before your block to close div with Bootstrap container and afterwards after your block to open it again.
I don’t know if there is any way to do it 🙁
Hi @ondrejvala,
it’s not easy to insert not valid elements into DOM through JS (closing tag only is not a valid DOM node). You can try to play with innerHTML though:
https://www.w3schools.com/jsref/prop_html_innerhtml.asp
So basically you might need to get the content of your DOM as a string, find the Section Block inside, append your HTML closing tag before the Section Block, and append updated HTML to your DOM with .innerHTML
Not easy & fast, but should work 😉