How To Hard-Wire (Embed) Your Adsense Code Into ANY Wordpress Theme
I get asked this question allot so here goes:
Q - how do I embed my Adsense code into my Wordpress theme
A - If you’ve never customized a Wordpress blog with your Adsense code. (I mean hard-wiring your Adsense code into your blog template without using like Adsense Deluxe)
1. Start by loading the Wordpress Default theme instead of whatever Theme you’re in love with at the moment. (just do it…..we’ll come back to the theme you are in love with later) Do that by going Dashboard/Presentation and clicking the Default theme. Check your blog to make sure it took.
2.
a) Watch this video on how to upload my custom Adsence Default template PHP files: http://video.google.com/videoplay?docid=-3682320675084757149
b) (click here to download my Adsense ready PHP files for the Wordpress Default theme - This download is a .RAR archive file, (I use .RAR instead of .ZIP), but your unzip program should be able to expand the .RAR)
c) Make sure you open all of my customized PHP files with notepad, or your html editor, after you download them, and put your Adsense publisher ID and channel codes in place of the XXXXXXs I have there.
d) After you have downloaded my PHP files, and changed all the Adsense code to yours, you need to upload them using your FTP client. Upload them to your Wordpress Themes directory, into the Default Theme folder/directory. Click YES OK TO COPY OVER FILES IN THERE ALREADY.
3. NOW…take a look at your blog. You should see the nice Adsense ads all over the place bucko. So now you’re still saying,
“But Terry, I want to use the Wordpress theme that I’m so in love with (today anyway)”
You can, but first you need to go into your Dashboard, then click Presentation, then click Theme Editor. Yo can now see all of your Default Theme PHP files listed on the right hand side.
Take a look at all of the theme files that I had you upload. You’ll see where the Adsense code is because you were already there when you changed all my XXXXXXXXs into your Adsense code.
Now take a GOOD close look at where I pasted the Adsense code. Guess how I knew where to place Adsense code?………I didn’t know!
It was all trial and error by your humble narrator. I just kept placing different Adsense ads into different places in the PHP files until it looked great. You need to do the same, but MAKE SURE you backup your theme first on your desktop, so when you play around with your Adsense placement and inevitably destroy your template files, you can quickly revert back to the original PHP file, and get your blog all back together again.
This is what you have to do to hard-wire your Adsense code into ANY Wordpress template you want. Trial and error my friend. No-one said this Interent income thing was going to be easy, and if they did……..well I probably did.
Have fun, and make your Adsense ads stick out like sore thumbs. That’s where the money is.















