Hello,
I have a problem to insert a script tag before closing body tag.
I've tried two different methods and each time the tag is not inserted correctly in the DOM.
1st solution with your T4 framework.
The tag is inserted before closing div.t4-content-inner tag (so not before closing body tag).
2nd solution with ReReplacer by RegularLabs.
The tag is inserted after div.4-wrapper tag, but other tags are inserted after.
Since I have to target #off-menu_158 tag which is just situated before closing body tag, it’s necessary to place the script after this tag.
Why your layout doesn’t allow to place correctly this script tag?
Neither solution works, so I think the problem is with the framework or the layout.
I’ve always used ReReplacer successfully to modify the DOM.
I asked Peter from RegularLabs and he told me to ask to template developers ...
For your information I have the same problem with the original (unmodified) Artsy template.
Thanks for your help,
Lorenzo