XF 2.0 How to add advertising Javascript code in the bottom of <body> tags

ak38

Active member
Hey guys,

I've got some docs from an ad platform that want to serve ads on the forum,in their instructions it says this:

Javascript Code
Place this code in the bottom of your <body> tags (or after all zone tags on the page).

My question is where do I place the code they have provided? Do I add this to a template and if so which?

Any help would be massively appreciated.
 
Hey guys,

I've got some docs from an ad platform that want to serve ads on the forum,in their instructions it says this:

Javascript Code
Place this code in the bottom of your <body> tags (or after all zone tags on the page).

My question is where do I place the code they have provided? Do I add this to a template and if so which?

Any help would be massively appreciated.
code can be placed in template PAGE_CONTAINER or use advisement option of xenforo
 
I have exactly the same need. I have the Edit template: PAGE_CONTAINER open. On row 770, which is the last line, it says </xf:macro>.

Do I just paste my javascript code below that line, on say line 772?

Edit: I tried it. It seems to work ok.
 
Last edited:
Top Bottom