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

The Stripping Aristologist Contest Winner

Well as you can see from the above screen capture the winning entry is #5. Heading over to the contest post and looking through the comments and the trackbacks I found that Anton of Link Right Contests was entry #5 with his guess of Julia Child. The actual answer was incorrect so he won the $50 but not the bonus prize. I was a bit generous to 2 entries that commented and entered but did not give the link. I had to search their blog to find the answer. There were several that commented and gave a link to their blog but I could not find a post about the contest or any links back to this blog. Anywho....Congrats to Anton and thank you all so much for reading and taking the time to interact with this blog and really make it what it is. Oh and Anton you might want to consider some kind of Contact Me link for your blog. Other than trackback to your post and a comment I have no way to contact you regarding your winning entry. Having a Contact Me is one of the first things any blogger should