How To Put Adsense In Your Posts – Without A Plugin

by Jason Drohn

Yesterday, I got an email from Kyle at Kylescove.com wondering how I inserted Adsense into single posts.

In truth, you can do it very easily with the Adsense Deluxe plugin, but to me that is too much work. I don’t necessarily want to go through and add a adsense call into every entry, so I hard coded it.

For some people, the hard coding option will work wonders. For others, Adsense Deluxe will serve their purpose.

Drawbacks to hard coding is that all of your entries will render the new way. So if you like to put big graphics at the top of your posts, the web browser will render them all wrong.

The other issue is that you can’t just whip out a 20 word entry and have it look good. It will have to be minimum, 100 words or so.

Either way, I like it hard coded better. No funny editing or text in posts, and nothing to worry about when saving. Plus it looks better.

So here is the sample code taken from this template. I have some notes in it for you. Just modify it to fit your theme.

Add to Cart

** Due to the popularity of this file (over 3200 downloads), we have decided to enact a donation tab to help pay for server costs. Donate anything you like and enjoy the rewards of having your adsense in your blog post! **

And here is the accompanying video which offers an explanation of how it works. Hopefully this video will render properly. It is being hosted on my server..

 

No related posts.

{ 5 comments }

Kyle Eslick February 27, 2007 at 11:11 pm

Jason,

Great post! I have the Adsense-Deluxe plugin, and enjoy it, but I can’t get the words to “wrap” around the ads like yours do.

I guess that explains how you did it! I will have to look into this as another option.

Do those ads get a lot of clicks?

Haddyy January 31, 2008 at 11:14 am

please help me how to put adsense ads between posts
http://forexhandeln.blogspot.com
Many thanks for helping

terrance May 31, 2009 at 10:24 am

go sport old bean

tito October 26, 2009 at 9:59 pm

awesome site brotha

Samuel Johnson July 10, 2010 at 2:27 am

you can easily earn lots of dollars from adsense if you have a high traffic site.-:-

{ 2 trackbacks }

Previous post:

Next post: