How To Add Google AdSense Code Manually in Clear Type WordPress Theme



As you may already aware, I am using Clear Type WordPress Theme from Theme Junkie in one of my blogs. I already wrote how we can add Google AdSense code manually in Atahualpa WordPress Theme which is a framework WordPress Theme. Since this Clear Type WordPress Theme is not a framework, It is needed a different way to add Google AdSense code manually. Indeed, this way (that I use to add Google AdSense code in Clear Type) able to be applied to almost all of non framework WordPress Theme.Therefore after read this article you can add Google AdSense code manually in your blog even tough the theme is not Clear Type Theme. The condition is that your blog WordPress theme should have single.php or any kind of .php that has same function with single.php. It is because the trick will do in it.

OK, I cut the crap and let’s add Google AdSense code manually into our blog and earn some good earning.

Step #1. Get Google AdSense Code

Here the Google AdSense code:

<script type=”text/javascript”><!–
google_ad_client = “pub-111111111111111″;
/* 336×280, created 5/11/10 */
google_ad_slot = “111111111″;
google_ad_width = 336;
google_ad_height = 280;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

I use 336×280 text only here. Form my experience, This large Google AdSense work best if we show it in blog post. As additional, I customize the color so looks blend enough into my blog post area.

Step #2. Additional Code Preparation

Since I want to show this Google AdSense Advertisement inside the blog post ( not in above or in bottom of the blog post), It is needed to add simple code which you can see in below:

<div style=”float:right; margin:2px;”> </div>

Step #3. Combine the Code

I need to combine the code in Step #1 and Step #2 so Google AdSense Advertisement can be showed like what I plan. — inside right of each blog post. The Combination will become like below:

<div style=”float:right; margin:2px;”>
Google AdSense Code Here
</div>

Step #4. Insert The Code into single.php

  • Log into WordPress Dashboard
  • Go to Appearance area and click it
  • Click Editor link
  • Click “Single.php” at Theme Files Templates
  • Find <div class=”entry”> tag and then Insert code in Step #3 right after it
  • Click “Update File” button to apply the Google AdSense Code

The Google AdSense Code insert successfully. You can see the result in picture below:

Google AdSense Looks

Final Words

These four steps allow us to show Google AdSense Advertisement inside right of each our blog post. These four steps is not only limited for Clear Type WordPress Theme but also can be applied to each blog as long as there is the single.php or any kind of .php as long as the function is same. With this, we do not need WordPress plugin anymore and it make we able to decrease our blog load and also save our blog resources.

If want to use the great WordPress Theme that I mention in this blog post, you can have it you can click this Clear Type link.




That’s all update this time, wait for next update!

PG

Author: dana (305)

Dana is the founder of LetUpdate dot Com , a blog where he shares much about blogging, and little about internet and IT. Yup, You will find many knowledge sharing about blogging here, and also knowledge sharing about Internet and IT sometimes. You can subscribe the LetUpdate dot Com Feed or twitter @danalingga to be updated.

Also Read:

1 comment to How To Add Google AdSense Code Manually in Clear Type WordPress Theme

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Your Latest Post