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

Code on Index Page Needed

Discussion in 'XenForo Questions and Support' started by Kenneth Wyatt, Jul 23, 2011.

  1. Kenneth Wyatt

    Kenneth Wyatt Member

    I am currently using heat mapping software for my website and I want to also incorporate it into my forum.

    It is a simple javascript code snippet that must be added before the </body> tag of the website ends. The code is made for one page only, so it cant show up on multiple pages or it will skew the data. Therefore I want to use it on my main forum page (one with sidebar and board listing), and I need a way to put the code into that page...and that page ONLY.

    What is the simplest way to implement this?

    Thanks in advance for all help and support.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add it to the PAGE_CONTAINER template as that is the template which contains the body tags.

    Otherwise add it to the forum_list template, but there are no body tags on that template.
     
  3. Kenneth Wyatt

    Kenneth Wyatt Member

    ok i will try that, thanks.
     
  4. Kenneth Wyatt

    Kenneth Wyatt Member

    PAGE_CONTAINER worked fine...thanks again
     

Share This Page