• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to insert code into the body tag


Well-known member
I've got some code snippets I'd like to insert into my site, they request that they're inserted before the closing </body> tag.

I'm not sure which template I should be digging around in to find this, any ideas please?



You should use the template hooks for this.
If you edit the templates, and you need to revert the template after a xenforo upgrade, you'll need to insert all the changes again....

(also if you install a second style, you'll need to edit the templates once again for the new style, that's also not necessary if you use template hooks! )