How to add a DIV on top of Xenforo


Well-known member
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.


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

Many thanks.


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


Well-known member
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.