1. 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

Discussion in 'Styling and Customization Questions' started by Andy.N, Aug 3, 2011.

  1. Andy.N

    Andy.N 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.

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

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

    Many thanks.
  2. Brogan

    Brogan 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.
  3. Andy.N

    Andy.N Well-Known Member

    Thanks but please write it in plain English please :)
  4. borbole

    borbole Well-Known Member

    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.
    Andy.N likes this.
  5. Andy.N

    Andy.N Well-Known Member

    I think something like the footer right here would fit right in ;)

Share This Page