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

Advertisment in the Header?

Discussion in 'XenForo Questions and Support' started by fattony69, Jan 19, 2011.

  1. fattony69

    fattony69 Well-Known Member

    I was wondering if anyone could help me out with the coding to do this. I've tried multiple ways. I've even trying to do the same thing as the Flexile skin, but failed.
    Trombones13 likes this.
  2. fattony69

    fattony69 Well-Known Member

    Nevermind. I figured it out.
  3. Trombones13

    Trombones13 Well-Known Member

    Would you share your new trinket of information with those of us who haven't figured it out yet? ;)
    gordy likes this.
  4. fattony69

    fattony69 Well-Known Member

    Sure! I wouldn't mind.

    I took Flexile's idea (shown here) by using some of the CSS he wrote to do so. First thing I did is make a new template:

    <div id="rightContentArea" class="pageWidth">
        <div id="rightContentBox">
            <xen:include template="Adsense_Header" />
    Then I inserted it into the template:

    <div id="header">
            <xen:include template="right_header" />
        <xen:include template="logo_block" />
        <xen:include template="navigation" />
        <xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>

    From there, I took some of the CSS he wrote, but scaled it down to what I needed and put it in the EXTRA.css. That was the key. I tried making a new CSS file, but that failed. Here is the CSS I used:
    #rightContentArea {
        position: relative;
    #rightContentBox {
        position: absolute;
        right: 0;
        top: 30px;
        max-width: 468px;
    Works perfectly!

    *Now on to my next endeavor. Trying to figure out why the sidebar only shows up in Opera and not Firefox*
  5. Travis

    Travis Active Member


Share This Page