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

How to add a DIV on top of Xenforo

Andy.N

Well-known member
#1
I need help.

I'd like to add a separate <div> on top of xenforo so I can put a leaderboard banner on it, instead of having the banner under navigation.

Example, http://www.engadget.com/

Ideally, I can style the <div> CSS to control background color, banner positioning, etc.

Many thanks.
 

Brogan

XenForo moderator
Staff member
#2
I suspect you will need to create a wrapper class and add it to the PAGE_CONTAINER template, wrapping the page contents.
 

borbole

Well-known member
#4
Thanks but please write it in plain English please :)
Create your css class and add it at the EXTRA.css template. Then at the template that Brogan mentioned above, call it. Like <div class="yourclass">code goes here</div>

Or you can hard code the css changes directly with the style tag if you don't want to create an extra class.