XF 2.1 Xenforo 2 - Banner side logo

rosal

Active member
In the Xenforo 1.5 we can put one banner side to the logo, with editing template ad_header.

What is the hader template name to put something like in the attach?
 

Attachments

  • header_xenforo_banner.webp
    header_xenforo_banner.webp
    18.9 KB · Views: 14
If you want to strengthen it with CSS;

extra.less add;
CSS:
.EMREEorgADS {
    background: rgba(23,78,117,0.1) none repeat scroll 0 0;
    border: 1px solid rgba(23,78,117,0.2);
    border-radius: 2px;
    padding: 4px;
    margin: 5px 0;
}

admin.php?advertising/ add;
HTML:
<div class="EMREEorgADS">
ADS CODE HERE
</div>

Demo;
2020-05-11_20-15-01.webp
 
If you want to strengthen it with CSS;

extra.less add;
CSS:
.EMREEorgADS {
    background: rgba(23,78,117,0.1) none repeat scroll 0 0;
    border: 1px solid rgba(23,78,117,0.2);
    border-radius: 2px;
    padding: 4px;
    margin: 5px 0;
}

admin.php?advertising/ add;
HTML:
<div class="EMREEorgADS">
ADS CODE HERE
</div>

Demo;
View attachment 224808
I recommend getting rid of class names associated with ad. Since ad blockers check everything related and block
 
Top Bottom