Wednesday, October 7, 2009

How to put your adsense below the title

Many say that put advertisements under the headings, visitors will be more inclined to click your ads. In the page element setting on Blogger there is no option that we can put adsense under the title and above the posts. Here are the alternative steps you can try to do it (these steps are for Layout template or new Blogger template).

Note that the adsense code cannot be pasted directly in the blogger’s XML template because error message will appear like this:

Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The processing instruction target matching "[xX][mM][lL]" is not allowed.

So before you put your adsense code in your blog, you need to parse the code. What is meant by parse the code? Parse means making your adsense code standarded XML and that is made by replacing aall the HTML character such as (<) with (&lt;), (>) with (&gt;) and (") with (&quot;). Parsing your adsense code will not violet any Blogger or Adsense regulations and parsing the code is necessary in order to put the code in Blogger's XML template. You can replace them one by one manually or by using text editor to replace all the HTML. There is a Parse HTML tool used for parsing your adsense code and is free and easy, that is:
http://blogcrowds.com/resources/parse_html.php

Paste the adsense code and click “Parse”. Now copy the parse result and save it. When you’re done follow the steps below:
  • Login to your Blogger.
  • Click Layout.
  • Click Edit HTML (it is always a good idea to backup your templlate, so that you can revert if you mess things up).
  • Check mark “Expand Widget Templates” above the template HTML box.
  • Now If you want to put your adsense above posts and below the page title, then paste your parsed adsense code above this tag:
    <data:post.body/> or <p><data:post.body/></p>
To set the position of your adsense to the right or left of the blog article content, you can add the float tag before the adsense code, like this:

<div style='float: alignment (right or left)?;'> Your adsense code here </div>

(Example), If you want it on the left:

<div style='float:left;'>
AdSense Code
</div>

When you are done click “Save Template” and do check your blog to make sure your adsense ads are right where you want it.

Most clicked Google ads area

No comments:

Post a Comment