groups

name language licence
Wordpress Categories Nav PHP BSD
Make header image clickable PHP BSD
Optimal ad display PHP BSD
Tweet This PHP BSD
Display a Pages SubMenu in your Sidebar PHP BSD
Display WordPress Tags PHP BSD
Display Admin Section PHP BSD
Display Recent Comments PHP BSD

< 1 2 3 4 5 6 7 8 9 >



language: PHP
licence: BSD

Optimal ad display

options: view full snippetsend to code collector
//This will place your ad block inside your first blog post. AdSense’s heatmap shows the area within the content to be an optimal area for the display of ads. I found this solution in the WordPress forum.

//Place:
<?php $showAdSense = True; ?> 

//before the line:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> 

//Then insert this into the part where you want the ad to appear.
<?If ($showAdSense) { ?><div style="float:right;padding:3px;"> Ad sense code here </div><?php $showAdSense = False;} ?>

	
(Continues...)