How to Display Adsense Ads On Individual Post After post title

Blogger.com has got flexibility in placing the ad sense code than any other blog platform, you can tweak the code a little bit and you can display the adsense ads anywhere you want to display. Look at my homepage. It consists of many posts and I am not displaying adsense ads after every blog item title. I want to display the adsense after the title of the individual posts. Is it possible?Yes it is, because I have seen in many websites people put the adsense ads right after the post title because it increases the adsense revenue to a greater extent.Why?Well you can understand this by reading google heat map article which I posted sometimes back.

To display the ads after post title I generated the code from my adsense set-up and placed right before the <data: post.body/> tag. But I did not achieve the desired results. I was able to display the ads but it was coming at my home page and also to the subsequent pages. This was annoying me and website visitors as well. Then I added one condition and I achieved the desired results.

You should have a basic HTML knowledge to modify the HTML code of Blogger’s template. You can learn it from w3schools.com.I would suggest that being a blogger you must have a basic knowledge of html.It is very easy and the tutorial placed in w3schools are extremely helpful or glitches.
Now to start with, Click on Template tab (or Layout of the blog you want to change if at Dashboard), and then click on Edit HTML.Click on “Expand Widget Template”. Before making any suggested changes in this post make sure you take the backup of your code to avoid any hassles.

The trick is show a widget in single post item view only is to add the following two lines of code to the top and bottom of the code block respectively:

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

you can now make the adsense ads displayed only when individual posts are viewed by adding above 2 lines to the code, so that it will has the following structure:

<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code
</b:if>

These lines should be immediately be placed above <data:post.body/> Tag of your HTML code.

Related Articles to Read




Post a Comment

 

Internet

© 2008 About Online Tips - A Complete Guide to Online Tips. | Contact|Terms and Fair use

All articles are copyrighted to About Online Tips.