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...

Give Viral Marketing A Chance !

==== Copy and Paste below this line ==== Instructions: Important Update - Please read here ! 1.) Copy and paste (for those of you using blogger post in the compose tab, not the edit html tab, of your post editor) the matrix of “ViralTags” below courtesy of Founders Cafe ( to support Jimmy’s quest of launching his own Internet Startup with a shoestring budget, please consider subscribing to his Full RSS Feed to see his triumphs and struggles in real time ). 2.) Substitute the Host Tag and one of the “Viral Tags” in the matrix with your anchor text of choice with your blog’s URL. Please keep anchor text to a max of 3 words to keep the matrix size manageable. 3.) When you get a ping back from someone that has your link in one of their “Viral Tags”, practice good karma by copying his/her Host Tag’s anchor text (automatically the associated link will also be copied) and paste it over one of your “Viral Tags” below. 4.) Encourage and invite your readers to do the same and soon this ...

Win $50! With The Stripping Aristologist - Contest

NOTE: Due to personal illness I have not been available and therefore have extended the contest through October 31st @ 4:00 PM CST. Well the September Contest is finally here. I have been pretty much MIA for a little over a week to take care of some offline "stuff." By the way, it is nigh on impossible to blog by cell phone. I am back now though and getting into the groove again and felt like giving something away! The contest rules are simple. Of course I can't make them totally idiot proof, last month proved that :), because there will always be some "brilliant" idiot that makes it through all the idiot proofing in place. That said here it is. Oh and read everything before doing anything :) . The Contest Guess my favorite Gourmet Chef . You don't even have to be right to win! I have been asked many times why I sometimes blog about Boca Java Coffee , La Cense Beef , and Dale and Thomas Popcorn as Seen on Rachel Ray! . Well it is for two reasons. One, as ...