It might interest you to know that you can add adsense into your wordpress blog, in various positions, just as you add in blogger, without the use of plugins.
I prefer this method of adding google adsense into your blog to the use of plugins because i’ve heard of cases where the plugin developers interchange their ads with yours.
With my step by step guide, you would be able to add Google Adsense ads to various wordpress positions of your blog such as;
– Add Adsense below blog title header (blog menu)
– Add adsense below post title
– Add adsense before comments
– Add adsense in sidebars
How to Add Adsense below blog Menu title header
– In your wordpress admin panel, Click on Appearance > Template Editor
– Open header.php
– Now paste this code in the last line
<div align="center" style="display:block; width:950px; margin-right:0; background: #ffffff;">
PLACE YOUR ADSENSE CODE HERE
</div>
How to Add Google Adsense Ads below post title
– Click on Appearance > Template Editor
– Open single.php
– Now search for
<?php
if(has_post_thumbnail()) {
– Place your adsense code before this code.
If you could not find that code in you single.php, search for
<?php
the_content('');
– now place your Adsense code before this code.
How to Add Google Adsense Ads before comments
– Click on Appearance > Template Editor
– Open single.php
– Now search for
<?php
if(comments_open( get_the_ID() )) {
comments_template('', true);
– Place YOUR ADSENSE CODE before this code.
How to Add Google Adsense Ads on Sidebars
This is quite the easiest part, it can be done in the widget area by dragging and dropping the widget in the sidebar area.
3 Comments
Nice, thanks for the sharing. I will try it.
Manually putting Adsense code between the comment section can be done through comments_template
hello friend
I decided to follow your guidelines. But got lost because i couldn’t find the template-editor on my admin dashboard.
I appreciate your response.
Thank you