« To those running bloggers who are going to the RunLondon 10K this Sunday… | Home | Running progress: Week 4 »
Advert placement within iqwolf’s “unnamed one” theme
By booyaa | October 7, 2006
These tips apply to version 0.5.2 beta of the wordpress theme. Whilst I exclusively use Google’s AdSense, these should work for most vertical and horzontal banners, as well as link ads.
I’ve tried to maximise my revenue potential whilst not breeching my advert provider’s T&Cs. To do this I’ve decided to use the following strategies:
- Link (text) adverts within individual posts
- Vertical banners in the sidebar, where possible the widest banner.
- Ad colours match the blog theme as close as possible
The 1st is a new strategy. Whilst the 3rd point is the 2nd part of my experiment to see if my readers prefer ads that stand out or those that blend into the blog (which is now in effect).
Placement of link ads within single posts (theloop.php)
Nothing fancy, just place the ad block after the post date header.
<h2 class="entry-header"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php strip_tags(the_title()); ?>"'>
<?php the_title(); ?>
</a> </h2>
<h3 class="date-header">
<?php the_time('F jS, Y') ?>
by
<?php the_author() ?>
</h3><!– PLACE AD CODE HERE –>
<?php if (is_search() or (function_exists(’unnamed_is_asides’) and unnamed_is_asides())) {
the_excerpt();
} else {
the_content(”Continue reading ‘” . the_title(”, ”, false) . “‘”);
Placement of link ads in pages (page.php)
As easy as the previous hack to execute, just place the ad code after the page title header.
<h2 class="pagetitle">
<?php the_title(); ?>
</h2>
<!– PLACE AD CODE HERE –>
<?php the_content(’<p>Read the rest of this page »</p>’); ?>
Placement of ad on the front page and other non-post pages
Nice easy one, use Otto’s Google AdSense widget. If content layout management was this easy…*sigh*
Placement of wide vertical banner in sidebar (sidebar.php)
This was one was a little trickier, I use the Google AdSense widget to avoid template hacks that I’m employing here. Unfortunately the widget does appear in any non-frontpage or page related items i.e. archive, categories or search results. I had to make this code fancy because I let the widget do all the hard work for me in the front page and pages. The code is not really fancy, it just displays the wide vertical banner for archives, categories and search results.
<?php } edit_post_link('Edit this entry.','',''); ?>
</p>
<?php } ?><?php /* Frontpage */ if (is_home() || is_page()) { ?>
<?php } else {?>
<p class="intro">
<!–PLACE AD CODE HERE –>
</p>
<?php } ?>
[tags]google, adsense, revenue, blogging[/tags]
Topics: Uncategorized |

Blog

