Hide Google Adsense Ads In Home Page And Display Them Inside Post Page

Monday, December 06, 2010

  1. Log in to Adsense
  2. Generate code required for displaying appropriate ads on you blog and paste it to a notepad
  3. After pasting the code to the notepad, remove the line breaks and comments from the Adsense code. Make sure that you code looks like the following (do not to modify any script of Adsense, just remove the line breaks and comments alone)

  1. Your Adsense code is ready now. Lets modify blogger template
  2. Log in to your blogger account select Layout of the blog which you want to modify
  3. Navigate through Template --> Edit HTML
  4. Take backup of your template by clicking Download Full Template. This backup will help you if you want to revert to old template
  5. Select Expand Widget Templates option to get access to the full code of the template
  6. Search for   <data:post.body/>    in the template HTML and place the following before the <data:post.body/>
<b:if cond ='data:blog.pageType == "item"'>
<!-- Paste your adsense code prepared in step 3 here -->
  1. Replace the text <!-- Paste your adsense code prepared in step 3 here --> with the adsense code which you prepared in the step 3 using notepad.
  2. After completing the replace operation, code in your template should look similar to the following

<b:if cond='data:blog.pageType == "item"'> 
   <script type="text/javascript">google_ad_client = "pub-asdfsadff";google_ad_slot = "123123123";google_ad_width = 336;google_ad_height = 280;</script> 
<script type="text/javascript" src="http://whatever url showing"> </script> 
  1. Save the template by clicking on Save Template button
  2. That's all. Your Blogger template is configured to display ads only in the post pages

Troubleshooting Guide

Why Ads are not displayed?
This happens if you modify any attributes of Google Adsense ads by mistake while removing the comments and line breaks.  To solve the problem, get the Adsense code again from Google Adsense and remove the line breaks and comments carefully.

Why Ads are displayed in a table with borders around them?
This happens when the line breaks and comments are not replaced from the Adsense code pasted in Blogger Template. Remove all the line breaks and comment start tags and end tags to solve the problem.
If you face any other problems, please post a comment. Just comment here and I will help you to solve the problem.

You can follow us on Twitter or Join us on Facebook to receive all updates . . .

Share your views...

5 Respones to "Hide Google Adsense Ads In Home Page And Display Them Inside Post Page"

Yasser Esmail Esmail said...

hello blogger
you have good content but you need to customize your blogger design and template
for blogger templates and tricks and tips and hacks and adsense tips and tricks and seo just go to
Fire Blogger Tools
thanks !!!

December 6, 2010 at 9:10 PM
Anonymous said...


December 6, 2010 at 9:24 PM
Coach Factory said...

reebok outlet, true religion, converse shoes, karen millen, louboutin, lululemon, north face outlet, nike air max, michael kors, hermes, ralph lauren, rolex watches, hollister, birkin bag, nike free, vans, new balance shoes, air max, louis vuitton, timberland, abercrombie and fitch, air jordan, montre pas cher, louis vuitton, lancel, mulberry, ralph lauren, ray ban pas cher, supra shoes, longchamp, hogan, nike air max, burberry, air max, nfl jerseys, true religion outlet, louis vuitton, nike free, oakley pas cher, yoga pants

August 13, 2014 at 3:06 PM
Coach Factory said...

chi flat iron, moncler, p90x, louboutin, moncler, canada goose, soccer shoes, moncler, juicy couture outlet, ugg boots, ugg, ray ban, canada goose, valentino shoes, herve leger, soccer jerseys, ralph lauren, canada goose outlet, oakley, asics, ugg boots, tn pas cher, cheap oakley sunglasses, ugg boots, canada goose outlet, gucci, wedding dresses, bottega veneta, celine handbags, canada goose, moncler outlet, jimmy choo, insanity, canada goose, mont blanc, marc jacobs, ferragamo shoes, ghd, mcm handbags, beats by dre

August 13, 2014 at 3:07 PM
Coach Factory said...

prada handbags, coach outlet store, coach factory outlet, longchamp outlet, burberry outlet online, kate spade outlet, louis vuitton outlet online, coach outlet, oakley sunglasses, oakley sunglasses, ray ban sunglasses, michael kors, tory burch outlet, nike shoes, coach factory, jordan shoes, michael kors outlet, polo ralph lauren, gucci outlet, toms shoes, air max, michael kors, true religion jeans, oakley sunglasses, oakley sunglasses, nike free, coach purses, louboutin, louis vuitton handbags, prada outlet, michael kors outlet, burberry outlet online, oakley sunglasses, ray ban sunglasses, nike air max, louboutin, chanel handbags, tiffany and co, ray ban, polo ralph lauren outlet

August 13, 2014 at 3:12 PM

Post a Comment


Connect with us


© 2010 - 2011 theinfoW.com All Rights Reserved | Contact Us | About Us | Privacy Policy | Terms of Use |