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

XF 1.2 Ad locations

#1
I am trying to place ads like in the picture, how can it be done in XF 1.2.2? My theme is Elegance if it matters. I somehow managed to do this in XF 1.1 but the same does not work with XF 1.2.
 

Attachments

Brogan

XenForo moderator
Staff member
#2
Nothing has changed with regards to ad templates between 1.1 and 1.2.

Is the style compatible with 1.2?
 
#3
Yes, Elegance is compatible with 1.2.

Ad templates do not show anything with my ad code scripts (javascript), and secondly there is no ad template for the right column.

With 1.1 test install I have the ads working when I added to extra.css:

#wrapper {
width: 1140px;
margin: 0 auto;
top:0px;
}

#forums {
width:980px;
float:left;
margin-left:0px;
}

#side {
width:160px;
padding-top:400px;
margin-left:980px;
}
and I put this in Page container after <xen:hook name="body">:

<div id="wrapper">
<div id="forums">
AD CODE

and in the end of footer template:

</div><div id="side">
AD CODE
</div></div>

Now trying this with 1.2.2 but it does not work.
 

Mike

XenForo developer
Staff member
#4
Nothing changed in this area and this isn't something we've heard of before. Double check that you're editing the correct style. You may want to create a new style and make these edits to that to confirm that it works on the default style.