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

XF 1.2 Banner in header

Discussion in 'Styling and Customization Questions' started by cyry, Feb 10, 2014.

  1. cyry

    cyry Active Member

    Hello ,
    How can i put a code for a random banner (4-5 random banners) here :

    [​IMG]

    Thanks . :)
     
  2. Sasa

    Sasa Active Member

  3. cyry

    cyry Active Member

    Thanks, but where i need to put the code ? in wich file .
     
  4. Sasa

    Sasa Active Member

    In template ad_header. Use TM because upgrade XF may delete/revert template. Insert code after
    Code:
    <xen:hook name="ad_header" />
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Ad templates are never touched.
    There is no need to use a template modification, just edit the template directly.
     
  6. cyry

    cyry Active Member

    [​IMG]

    for put the banner down ? how can i make it ?
     
  7. Sasa

    Sasa Active Member

    Did you insert this code?
    Code:
    <div style="display: block; float: right; line-height: {xen:calc '@headerLogoHeight - 4'}px; *line-height: @headerLogoHeight; height: @headerLogoHeight; vertical-align: middle">
        Image or advert code
    </div>
     

Share This Page