Forum Moderators: martinibuster
It is not my computer as it's been tested from two others here and two others at another location. As far as I know, this bug is only in IE6. I'm not sure about IE7, but Firefox2 displays it fine.
This unit is on a WordPress blog using a modified Cordobo Green theme. I enclose the ad in div tags on the index page of the theme, floated to the right at the top of the first post. This is in TheLoop directly after the #main div opening tag. It's a 250x250 text/picture AdSense For Content block. I set the div size to 250x250 and even tried 251x251 and that didn't fix it. Again, this works fine in Firefox, but not IE6, not sure on IE7.
Another thing I noticed in my testing, when viewing source from the browser, Firefox has an iFrame right after the last AdSense JavaScript call. In IE this iFrame is not there.
This ad is in a key area and as IE6 is (unfortunately) the most popular browser, this is big problem. Any help is greatly appreciated.
Here's my stylesheet: [thegadgitech.com...]
Here's is my wordpress loop (with some unrelated content hidden):
sorry, the tabs were stripped
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry<?php if(is_home() && $post==$posts[0] && !is_paged()) echo '_firstpost';?>">
<div class="latest<?php if(is_home() && $post==$posts[0] && !is_paged()) echo '_firstpost';?>">
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="meta<?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
<?php _e("Posted on "); ?> <?php the_time('F jS, Y') ?> in <?php the_category(',') ?> by <?php the_author() ?> <?php edit_post_link('Edit', ' ¦ ', ''); ?>
</div>
<div class="main">
<?php if(is_home() && $post==$posts[0]) { ?>
<div id="topPostAdsense">
<!--GoogleAdsForContent TextAdUnits Begin-->
<script type="text/javascript"><!--
Google code here (hidden)//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<!--GoogleAdsForContent TextAds End-->
</div>
<?php } ?>
<?php the_content(''); ?>
<?php wp_link_pages(); ?>
<ul class="readmore">
<li>readmore section/post footer (hidden)</li>
</ul>
</div>
<!--
<?php trackback_rdf(); ?>
-->
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<div class="warning">
<p><?php _e('Sorry, no posts matched your criteria, please try and search again.'); ?>
<?php include (TEMPLATEPATH . '/searchform.php'); ?></p>
</div>
<?php endif; ?>
Otherwise, I think I may go back to putting the adsense directly in the post - it floats fine there (or at least it used to on another theme). It's a little more work to keep up with, but then I can put the ad anywhere, not just the top-left or -right corner.