Howto : Add Ads After First Post on your Wordpress Homepage
Abhinav Kaiser | Sep 09, 2008 | 0 comments
1. Open your FTP application and browse to the theme files. Locate either index.php or home.php depending on the theme and open them.
2. Find this code in the file : <?php endwhile; ?> or one of its variants such as <?php endwhile; else: ?>.
3. Just before the endwhile code, insert this code:
<?php if(!$show_ads){ ?>
YOUR ADSENSE/AD GOES HERE
<?php $show_ads = 1; } ?>
4. Save the file and upload.
5. That’s it!
Piece of cake isn’t it. If you have any further clarifications, let me know…
Related posts:
