Dec 10, 2008
I often receive complaints that Grid Focus – or any of my other themes – are not “ad friendly”. Official ad support is nowhere near my list of reasons for giving back to the WordPress community. If ad support is necessary, please modify the template(s) to meet your needs. Note that if I do make room for ads, I follow the generic ad formats used by the likes of Yahoo or Google – see AdSense Ad Formats.
For Grid Focus users, here is a quick way to integrate the 468 x 60 AdSense image / text banner ad.
<!– your adsense code –>
1. Create a new template file – for this example I’ve created adsense.php and pasted the code below + your unique AdSense script.
margin: 30px 0 5px 50px;
2. Add the following CSS to style.css.
<?php include (TEMPLATEPATH . ‘/adsense.php’); ?>
<?php include (TEMPLATEPATH . ‘/second.column.post.php’); ?>
<?php include (TEMPLATEPATH . ‘/third.column.shared.php’); ?>
3. Reference the template file in index.php, single.php, and page.php above the calls for the second and third columns.