Add Google AdSense Code Manually in Atahualpa 3.4.5 WordPress Theme



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.

Google AdSense




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”

Atahualpa 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”

Atahualpa Edit Post

  • 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!

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:

29 comments to Add Google AdSense Code Manually in Atahualpa 3.4.5 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