As you may aware that I used “Easy AdSense” WordPress plugin to show Google AdSense advertisment in this blogging tips blog. It is working great until now — without any big errors that affect Google AdSense performance for this blog. But – as in title – I will try to add Google AdSense manually. It is because I am trying to reduce plugin usage in this blog as much as possible. I try to reduce plugin usage for blog speed sake. I faced slow response of this blog recently – especially if I access the admin page. I hope reduce the plugin usage can improve this blog speed.

OK, Let’s Add Google AdSense Manually
I decide to only change the adding – from plugin to manual adding – so there is no change in placement for this time. Oh – almost forget to mention, I also want to try new Google AdSense size (336×280 Large Rectangle) as replacement for current 300×250 Medium Rectangle which I put in below title of each article. I also try to blend the Google AdSense in side wide area by change the background color. I easily change the background color trough “Manage Ads” facility of Google AdSense.
Let’s see how this change will perform regarding to my Google AdSense earning. Google AdSense is about trial, trial, and trial, isn’t it?
Prepare the Google AdSense Code
Here the AdSense code for Blog Post:
<script type=”text/javascript”><!–
google_ad_client = “pub-11111111111111111″;
/* 336×280, created 4/10/10 */
google_ad_slot = “6302932304″;
google_ad_width = 336;
google_ad_height = 280;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
Here the AdSense code for Side Wide (with background change):
<script type=”text/javascript”><!–
google_ad_client = “pub-11111111111111111″;
/* 160×600, created 1/7/10 */
google_ad_slot = “2724394232″;
google_ad_width = 160;
google_ad_height = 600;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
Note: If you do not know how to get Google AdSense code, You can find the way in how to get Google AdSense code article.
Before adding the Google AdSense Code manually, I need to disable the “Easy AdSense” WordPress plugin first. I can deactivate it easily trough WordPress plugin feature. OK, now the “Easy AdSense” WordPress plugin is already disable, and we can start to add Google AdSense manually.
Adding Google AdSense for Blog Post
Since I want Google AdSense for blog post is only showed up in single post, I need to add some simple code for it. It will make the code like below:
<?php if(is_single()){ ?> AdSense Code for Blog Post <?php } ?>
The code above will make Google AdSense advertisement is only showed in single post (only when readers read the article).
Atahulpa 3.4.5 WordPress theme do not have a “single.php” therefore I should put the code trough “Atahualpa Theme Option (ATO)”. Here how I do it:
- Go to WordPress Admin Page
- Click “Appearance”
- Click “Atahualpa Theme Option”
- Go to “Center Column” area and click “Style & edit CENTER COLUMN”
- Go to “The LOOP” areaPaste the prepared Google AdSense code right after “<?php bfa_post_byline(‘<div>’,'</div>’); ?>”
- Go to “Post & Pages” and click “Edit POST/PAGE INFO ITEMS”
- Go to “BYLINE:Single Post Pages” and put “</br>” tag in it. This is to give a space between title and the Google AdSense Advertisement.
- Click “Save changes” button to apply the change.
Now, The Google AdSense advertisement will be showed right in below of article’s title each time readers read an article.
Adding Google AdSense for Side Wide
Add Google AdSense in side wide area is far easier than add it in blog post. I only need to drag an text widget and paste the prepared Google AdSense into it. Here how easy I do it:
- Go to WordPress Admin Page
- Click “Appearance”
- Click “Widgets”
- Drag “Text” widget into “Right Inner Sidebar”
- Paste the prepared Google AdSense code into “Text” widget
- Click “Save” button to apply it
Now, The Google AdSense advertisement will be showed in side wide link each time readers in home page area.
Final Words
If available, manual adding is always a better choice when we try to add some new functions in our blog. And that’s what I do in this blog. I add Google AdSense by using manual way instead by using WordPress plugin (Easy AdSense) for it. It is quite easy to show Google AdSense in article and side wide for Atahualpa 3.4.5 WordPress theme. I share how easy it is trough this article and hope you able to do this easy way in your own Atahualpa 3.4.5 blog.
That’s all update this time, wait for next update!


hello
im using latest Atahualpa 3.6.4
when i follow your instructions
everything is fine, except, my homepage got sticky post and lots of recent post
so each post resume gets the adsense ad, so i end up with 10 adsense ads on each post title on the homepage?
how do i fix this?
Use the is single tag on the codes.
You really got a nice write-up. Thank you for sharing.
But I have a little problem. I have seen this in a blog lately but couldn’t remember which. I need to insert adsense into the center column on the front page alone. Pls how can I do that? Apart from the two sidebars, I want google ads to be the first thing on the front page before any other post. Thank you.
do You mean on the home page?
Thank you very much for posting this information. I followed your instructions and added the Google Adsense code to the individual pages. I was looking for how to to do this and your post had excellent instructions. Thank you, thank you, thank. All the best to you and your family.
Kris Kemp
http://www.kriskemp.com
Glad This post can help you mate.
Dana, The tutorial is simply superb for a newbie like me. i tried my hand recently on atahualpa and working very smoothly due to people like you.
I need one more help. How can i put 2 bars/separators (just above and just below the adsense ad), i need the same bars/separators and colours, which are being used in atahualpa theme
It think you can integrate the bar html source code instead the %bar tag but for detail tutorial, I need to do my research first.
Hi Dana,
Nice info. I want to put Adsense Ad just after post content ends. I tried to put code but I am using plugins for “Related post” and outbrain.com widget. so my ad appears after these widgets. Just see any post on teleguru.in, I want 468×60 text ad in single post page at the end of post content.
Please if you can help.
Farhan
Teleguru.in
Sorry that can help you since I am also still trying to do it. However, for fast solution, you may use a plugin such as AdSense now for it.
Hi Dana, One of my friend helped me to fix it
great mate.
Yes Dana, Your absolutely right. I have sent you the code as well. Is it because I am using version 3.4.9 ?
it should work for 3.4.9. I have tried it.
Hi Dana, I tried inserting this code still its showing ads on home page itself along with this codes..
I wanted ads show below title and after the content on single post not on home page, Bcoz I have multi posts on homepage
It’s strange. If I am not mistaken, you mean to put the adsense as what I did at this blog, right? If so, the code should work. But, If still not work, please send the complete code that you use through this blog contact form.
Hi Dana, Nice tip. I inserted adsense code after <?php bfa_post_byline(‘’,’’); ?>”
But after inserting adsense code, this shows ads on home page as well below title on each post.
I wanted ads only on single posts, Not on home page.
Any suggestions??
You should put this code:
Before AdSense Code
< ?php if(is_single()){ ?>After AdSense code:
This really rocks dude!!! I am new to Atahualpa, but I really find this theme really great.
I was originally planning to buy thesis or frugal. But now I am deeply convinced that it is no longer necessary. I think I will be sticking with this theme.
Thanks for some tutorials. It helped me a lot.
PS. How did you place the google buzz, retweet, and diggs on the side? Did you use another plugin?
Yup, atahualpa is free theme that feel like premium theme.
For social media button, I use digg digg wordpress plugin.
Hi Dana,
I’m using this theme on one of my Blogging Wire blogs. I’m going to give this a try. Thanks a lot for the instructions. This theme rocks!
@Ileane
Yes, it is rock and free.
Hey, nice tip dana! Actually I think you’re a Atahualpa pro!
Thanks Saksham. I am not a pro but I am a learner of Atahualpa theme.
Helpful to people using Atahualpa theme. BTW don’t you use WP super cache for caching pages.
I do not use it yet. Is it really significant?
I’m sure this will help a few people out Dana. Do you reckon that it is the adsense plugin that is slowing your blog down, could it possible be one of the other ones? Have you added any new ones lately?
Honestly, I am not sure about it. The newest plugin that I installed is BlogEngage plugin.
[...] This post was mentioned on Twitter by dana lingga. dana lingga said: Read This: Add Google AdSense Code Manually in Atahualpa 3.4.5 WordPress Theme http://ow.ly/174Vit [...]