adsense banner inside logo_block

xml

Active member
i put 2 adsense banners inside logo_block like this:

Code:
<div id="logoBlock">
 
    <div class="pageWidth">
        <div class="pageContent">
            <xen:include template="ad_header" />
            <xen:hook name="header_logo">
            <div id="logo"><a href="{$logoLink}">
                <span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
              <!-- <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" /> -->
 
            </a>
 
<xen:include template="adsense_728x90"/>
<xen:include template="adsense_728x90"/>
 
</div>
            </xen:hook>
            <span class="helper"></span>
        </div>
    </div>
</div>

one of those 2 banners went down outside the logo block, how to fix this?

here is the adsense_728X90 tamplete:

Code:
<div style="text-align: center; margin-top:8px;">
<!-- GOOGLE ADSENSE CODE STARTS HERE  -->
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
/* Below Navbar */
google_ad_slot = "xxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!--  GOOGLE ADSENSE CODE ENDS HERE -->
 
</div>
 
That doesn't help.

I need to see the source code so I can see what's going on.

I notice though that you are including the same template twice.
Try using two different templates.
 
its in my local machine, i tried different tampletes also and it give the same result, as if the logo_block doese not hande more than one banner only
 
its in my local machine, i tried different tampletes also and it give the same result, as if the logo_block doese not hande more than one banner only
You may want to try this stuff on a real url as google adsense can sometimes not serve accurately to anything other than the official URL which you gave them with your account.
Just an idea.......not sure it would do what you are seeing - but always good to make certain!
 
Top Bottom