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

XF 1.2 Trying to add banner at ad_header

Discussion in 'Troubleshooting and Problems' started by Hristo Avramov, Sep 1, 2013.

  1. Hristo Avramov

    Hristo Avramov Active Member

    But it always get over the logo which is ugly. the logo is the same size as the banner and there is a lot of space on the right of it.
    I tried to use <center> banner </center>
    and it centers it but again over the logo.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Hristo Avramov

    Hristo Avramov Active Member

    Thanks, but how do I align it horizontally in the center, being in the right the banner is under the login button.
    Or at least align on the left, but not before the logo as it happens if I float ir left.
     
  4. Hristo Avramov

    Hristo Avramov Active Member

    Anyone knows how to move the banner on the left side, but after the logo? Right now setting it to float left makes it first, before the logo.
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Try:
    Code:
    <span>
    <img src="http://path/to/image.png" />
    </span>
     
  6. Hristo Avramov

    Hristo Avramov Active Member

    doesnt work this way
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Worked for me on my local.

    You'll have to find something which works for you.
     
  8. Hristo Avramov

    Hristo Avramov Active Member

    I found very simple solution. Open template logo_block. Find
    Code:
    <xen:include template="ad_header" />
    Cut it and paste it after
    Code:
    <span class="helper"></span>
    
    Save and now open ad_h
    place your ad and center it with <center> </center>

    Now my ad appears after the logo and centered, Not above it.
     
  9. Motobaka

    Motobaka Active Member

    Thanks to this post I was able to place an ad with Brogans suggestion. The ad is 468px wide. Now I’m wondering if it would be possible to make the ad not show on devises that are less than 468px wide.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    http://xenforo.com/community/resources/responsive-design.2193/

    Code:
    .MyContent {
    float: right;
    }
    
    <xen:if is="@enableResponsive">
        @media (max-width:468px) {
            .MyContent {
            display: none;
            }
        }
    </xen:if>
     
    Motobaka likes this.
  11. Hristo Avramov

    Hristo Avramov Active Member

    IN extra.css ?

    I used <center> for my ad though. I tried it and the ad still shows even under 468 px.
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Hristo Avramov likes this.

Share This Page