In Blogger, I put my adsense javascript code somewhere in the HTML template but adsense just does not show? Why?
When you put javascript code in HTML template you have to be careful with comment inside of it. Your adsense code looks something like this:
<script type="text/javascript"><!--
google_ad_client = "pub-3404770245697982";
/* 160x600 ink, created 5/26/10 */
google_ad_slot = "9119188962";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
When you copy it and paste it in your blog's HTML template and save, Blogger would join everything within <!-- and //--> into one single line, making it a Javascript comment. That's why you don't see adsense. To fix it, simply remove <!-- and //-->. An alternative is to insert the adsense code in the individual post because Blogger leaves the formatting as it is, but it might be a hassle to do this for every post
Kamis, 27 Mei 2010
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar