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

How do I include a wallpaper-banner above the header?

#1
Dear all, I plan to include a wallpaper-banner above the header of the forum. In which template do I have to place the ad code? The header template does not work, as the banner needs to be above the header-logo. Many thanks for hints!
 
#2
To illustrate the position of the banner I attached a pic. Does anyone know which template I have to edit to include the banners at this position? Seems to be "outside" of the region covered by templates. Thanks for any hints!
 

Attachments

Brogan

XenForo moderator
Staff member
#3
You will more than likely have to create a wrapper for the forum and add your banner that way.
 
#4
Ok - in which template file would i have to do that (page container?)? Could you provide me with the basic code for the wrapper? Many thanks!!
 

DBA

Well-known member
#7
Try something like this (not tested):

In your PAGE_CONTAINER template find this:
HTML:
<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
And add this below it:
HTML:
<div id="anf_wrapper">
<div id="anf_headerwrap">Header content</div>
<div id="anf_wrapper2">
Next find this:
HTML:
</body>
And add this right above it:
HTML:
<div id="anf_wrapper3">
<img src="http://www.dirtbikeaddicts.com/images/test_ads/120x600.png"/>
</div>
<div>


Add this to your EXTRA.css file:
Code:
#anf_wrapper3 {
float:right;
}
#anf_wrapper2 {
float:left;
}
You'll have to tweet your css to get everything aligned right.
 
#8
Hi there,

thanks - it works on a basic level when I include the wrapper in the page_container in the <head> section. There is only one problem: When I reduce the browser width the skyscraper places itself above the forum header - not next to it. Is there a way that includes it like the sidebar - i.e. when limiting the browser width it just is not visible anymore and the rest stays the same? Thanks for an update!
 
#11
Same here. We are about to make that jump from vb to xf on our main forums. But we can´t as long as we are not able to provide the ad-units, we´ve already sold with the wallpaper-ads in our vb-plattform. Anyone able to tell us what exactly we have to do?