Random thoughts on art, technology, stuff, and occasionally Real Estate: Thesis Theme: Adding an Adsense panel

Thesis Theme: Adding an Adsense panel

OK... now let's see if I can add a three column panel for Google Adsense ads above the content columns in the Thesis Theme.

No, you would probably not want to display ads on any of your professional real estate blogs.  But there are people who create multiple separate blogs on various other topics with the goal of generating a little Adsense income.  No, you will probably not get rich from the Adsense checks, but a few extra dollars a month always comes in handy.

Anyway, building on what I learned earlier:

Open the custom-functions.php

and paste in


add_action('thesis_hook_after_header', 'custom_adsense');


function custom_adsense() {
?>


<table cellpadding="30">
<tr>


<td>
<script type="text/javascript"><!--
google_ad_client = "pub-6270001232633363";
/* 336x280, created 4/16/08 Foreclosure Blue Title */
google_ad_slot = "9185194513";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


</td>
<td valign="top">
<script type="text/javascript"><!--
google_ad_client = "pub-6270001232633363";
/* 250x250, created 9/7/09 Image for Foreclosure */
google_ad_slot = "1876038709";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>


<td>
<script type="text/javascript"><!--
google_ad_client = "pub-6270001232633363";
/* 336x280, created 4/16/08 Foreclosure Blue Title */
google_ad_slot = "9185194513";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>

 

</tr>
</table>

<p><hr></p>

 

<?php
}

 

It worked:

 You'd want to include your own Google Adsense code, but of course, I won't complain if you leave mine in.

 

 

6 commentsCheryl Johnson • January 31 2010 01:14PM

Comments

Cheryl I knocked this out of the WordPress group accidently... did it to Lane recently too.  Sorry.  Please repost it!!!!

Sorry clumsy mouse. 

I added Adsense to an old blog yesterday. Never done it before...

Posted by Maureen McCabe Columbus OH (Real Living HER Worthington) about 1 month ago

Maureen,

Now go back and apply everything you know about SEO to that Adsense blog.  :-)   ( Joel Comm is my favorite Adsense Guru http://adsense-secrets.com/ )

PS if you get the free ebook, don't accidentially sign up for the PAY-FOR newsletter; unless you want to pay for it of course.  :-)

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA about 1 month ago

Thanks for sharing your code, Cheryl. I really need to spend some more time with WordPress and monetizing, and this will help.

Posted by John Novak - Las Vegas and Henderson NV Real Estate (Keller Williams Realty The Marketplace) about 1 month ago

John,

Just a note:  If you are not using the Thesis theme, the code would go into your main index.php file, above the loop....

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA about 1 month ago

got the ebook and started reading it... Zzzzzz

I will get it read though.

Posted by Maureen McCabe Columbus OH (Real Living HER Worthington) about 1 month ago

The 60 second version:

Place ads above the fold

Design the site so that ads blend in nicely and don't clash

Create good content, so Google will serve up ads that match your content

 

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA about 1 month ago

This blog does not allow anonymous comments