Skip to main content

Blogger How To – Ads That Appear Only An “itempage” Or “permalink” Of A Post

When analyzing my traffic data I noticed that most of my posts were being read via their permalink page and that this percentage was steadily increasing. Digg, Reddit, StumbleUpon, and the links I post, rss feed links, and internal links all refer to the permalink of a post. As these are an increasing percentage of traffic I decided to find a way of removing ads from my main page posts and have ads that only appear on the permalink of a post. This is a great way to remove advertisement clutter from your main page (something I'm still working on) and place ads where the reader is more actively engaged and likely to follow the advertising.

Step 1

As always the first thing you should do before making any changes to your template is to make a complete backup.

Step 2

Generate the ad code at whatever provider you decide to use and in the format you prefer, mine is a 468 x 60 banner. Now you will have to parse the code so that it can be placed into your template. If you don’t know how to do this using &; formatting or simply just don’t want to waste the time, then you can use this code parser (thanks Blogcrowds) to do it for you. Copy and paste your html ad code into the parser and then copy the output it gives you. This “parsed” code output is what you will paste into your template.

Step 3

Go back to your html edit page click and check the box to Expand Widget Templates

Step 4

Scroll down through the template code until you find the code that looks like this.

<div class="'post-header-line-1'/">

<div class="'post-body'">

<p>
<data:post.body/>
</p>

Step 5

Paste this code

<b:if cond="'data:blog.pageType">
</b:if>


Into your template like this

<div class="'post-header-line-1'/">

<b:if cond="'data:blog.pageType">
</b:if>

<div class="'post-body'">
<p>
<data:post.body/>
</p>

Now if for some reason you want the ad at the end of your post past the code after the </p>

Step 6

Now paste your parsed ad code into the conditional if statement like this

<b:if cond="'data:blog.pageType">

Your parsed code here!

</b:if>

Step 7

Save your template. There that’s it. You now will have the ad block you created showing up in your post only when it is viewed via its permalink url.

later all and have a profitable and productive blogging day

Get more profitable and productive information by subscribing to my newsletter! or clicking the links below to subscribe to my feed, bookmark my site, or add me to your favorites.

Add to Technorati FavoritesAddThis Social Bookmark ButtonAddThis Feed Button

Comments

Popular posts from this blog

What the F Does the C Stand 4

I know all of you have been waiting with baited breathe for my first contest. Well we are taking the plunge together. Here is the chance for all of you to win something for doing almost nothing. Hopefully you won't think this Contest is full of Sh-t . For many many years I have had the "nickname," I guess you could call it, of Cman. Here lately, probably due in part to #10 in my 10 Reasons John Chow Probably Thinks This Blog Is About Him article, I have been getting asked more and more what the C in Cman stands for. Herein lays the focus of this contest. For the person who can guess what the C in Cman stands for I will give them $100. If multiple people guess correctly the winner will be chosen by random drawing from among the correct entries. If no one guesses correctly I will randomly pick from all entries and will award the winner of the losers $20. Clarification: 1. In the words of Juan Sanchez Villa-Lobos Ramirez, "There can be only One." Winner that is. E...

Are We Too Connected?

I have asked myself, and others, this question many times. It all started with the answering machine. Then we had emails, mobile phones, and now mobile phones with emails. We now have Twitter, & ppl posting constantly about their lives. It isn't that I don't see how it could benefit this blog, but simply put, quite a bit of the time I don't give a da-- that you are sitting in Starbucks reading a book. Unless of course there is some benefit to me from that information, such as you are a friend I'm meeting for coffee. Also, I really don't figure you give a da-- that I am sitting somewhere either. I understand Twitter goes beyond that, but you get the point. I use twitter, and yes I've posted that I was sitting in a Starbucks. So we have people running around with their iPhones and Crackberries worried they are missing emails, phone calls, and text messages. They are doing this while listening to music and Twittering away. With all of the social networking a...