1. 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

Discussion in 'Styling and Customization Questions' started by RobinHood, Jul 3, 2011.

  1. RobinHood

    RobinHood 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?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    The PAGE_CONTAINER template.
    RobinHood likes this.
  3. ragtek

    ragtek Guest

    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! )
    RobinHood likes this.
  4. RobinHood

    RobinHood Well-Known Member

    Ahh gotcha, got a link to how I can use these template hooks por favor?
  5. Brogan

    Brogan XenForo Moderator Staff Member

  6. RobinHood

    RobinHood Well-Known Member

    Thanks :)

Share This Page