Tuesday 30 October 2012

How To Insert Adsense Or Chtika Code Between The Post Title And Post Body

If you are using your blog for monetization purposes. One thing that you need to put into consideration is  your ad placement. If your ads are placed in the right place, you are more likely to have a high CTR which is equivalent to a higher earnings. One such best place  to display your ads is just below the the post title and the post body.  

If you are using blogspot, you will notice that Google gives you a few option of how to place  your adsense but it doesn't show you how to place in between the title and post.  For other bloggers using other ads Networks like Chitika, then you just have to put the code manually.

Here is a step by step by step guide that will help you in putting your Chitika or even Adsense code ad in between the title and the post body.



To do this, you  first need to convert  the code that you got from Chitika or Google Adsense to XHTML. There are so many programs on the internet that you can use to do this but one that I like and I have used is eblogtemplates and cstnetwork.  Simply copy and paste your code from Chitika or Adsense then click on convert.  No need to worry since Google won't penalize you for doing this.

Go to Blogger - Dashboard - Design- Edit HTML
Always remember to download your template before you make any changes.
Click on Expand Widget Templates
Using Control + F
Search for <data:post.body/>
Go back to the program that you used to convert your code and copy the Chitika or the Adsense code.
Just before <data:post.body/>. Copy and paste the following codes; 

<b:if cond='data:blog.pageType == &quot;item&quot;'> followed by
Your Chitika or Adsense code 
 </b:if>  
<data:post.body/> 

Your final code will now look like this:
<b:if cond='data:blog.pageType == &quot;item&quot;'> 
Chitika or Adsense code - inserted here
</b:if> 
<data:post.body/>

Save your template. If you check your blog, you will find that all posts have ads which are placed in between the post titles and post body.

TO insert ad codes below the post you can paste your adsense or chitika code below the <data:post.body/> then save your template,and all done. your chitika or adsense code will appear  below your post.
NOTE: must create a backup of your templates code before addind this code.

1 comment: