Monetize your
wordpress blog with google adsense
"How to add Google adsense to a
wordpress blog!"
I've recently switched from blogger to wordpress, well not exactly
switched I just started a wordpress blog for this website.
Wordpress is a lot different than blogger , in that it is written in
php. Not Html or css. So it takes a little getting used to.
Heres a few ways you can add adsense to your wordpress blog
In the side bar
Lets say for instance that you want to add a 120x600 skyscraper
adsense add to your wordpress blog in your sidebar at the bottom:
You'll need your google adsense code (below is an example of how the
code will look)
<script type="text/javascript"><!--
google_ad_client = "pub-12345678910";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="12345678910";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Oh just a quick note: dont fool with the html of the add google really
frowns upon that!!
Paste it into the code you see below in the sidebar.php:
Code:
</ul>
</li>
<?php } ?>
put it here
</ul>
</div>
Top of the page
Maybe you'll want some adsense at the top of the page, to do this put
your google adsense ads code at:
Code:
<body>
put it here
<div id="page">
Bottom of the page
If you want the ad at the bottom of your posts, put the ads code at:
Code:
</div>
Put it here
<?php get_sidebar(); ?>
So there you have it a simple and easy method for adding google
adsense to your wordpress blog
For more great ideas and tools to help you optimize your wordpress blog
for google adsense I highly recommend you pick up a copy of Joel comm's
google adsense secrets 3.0 ebook
What you need and want from your
blogging
software.
make money blogging ...
Resources
|