Hybrid Theme is an excellent WordPress theme and it never fails to impress me. However, the steep learning curve of the theme can be a huge turn off, for people who are not that familiar with the different aspects of WordPress and its themes. Even having that knowledge is of minimal help, as Hybrid has a totally different structure than other themes. This time, I will help you setup AdSense ads on your blog, and make them appear below the title.
We have sen how you can setup the Hybrid Theme on your blog, and how to show excerpts instead of full posts on your blog homepage, when using Hybrid theme. We have also seen how to add advertisements under a post title, remove duplicate meta tags and how to show link adverts under the menu.
The main source of revenue for a blog like mine is Google AdSense. Google ads on a WordPress blog need to be well placed for maximum clicks, yet be non-obtrusive to respect the user’s reading preferences. I usually tend to follow Google’s AdSense ad placement guide, when it comes to monetizing my blog. If there is one destination where Google wants us to put advertisements, it is under the title. This has a high visibility, and does not block the content of the post.
Add Google Ads under post Title in Hybrid Theme

Generally, in other themes, you edit the posts.php file to get your custom content under the title. However, with Hybrid, there is no posts.php file. So, how exactly do we do it? Let us see.
With the Hybrid Theme, it is not easy to edit files here and there. So, initially, I tried a plugin to put ads under the title, but it was messing with my theme! Good SEO practice requires us to have our Title in H1, but the plugin was creating confusion, removing the H1 tag from my post title.
Then, I moved on to edit my theme files. I searched for a call to the_content(), as that is the function used to display post contents and it should be on one of the files that format the post.
Surprisingly, I found it in many pages, along with the singular.php file. Now, all you have to do, is paste the AdSense code right between
<em><?php do_atomic( 'before_entry' ); // hybrid_before_entry ?></em>
and
<em><?php the_content(); ?></em>
With the code in place, your Google ads will start appearing on all posts, below the title. You can see an example of what I am talking about, in this post.
If you have a more efficient way of doing this, please leave a comment.
Chinmoy Kanjilal is the geek behind Techarraz. This is where he rants about his adventures with technology. Get to know him better, and connect with him on social networks.
Recent reactions