Methods To Display Ads On WordPress Homepage
WordPress, widely used by masses to create blogs and voice their thoughts, and it also allows one to display ads on their homepages and posts. It gives everyone freedom to become more creative and enforce their unique ideas.
The advantage of placing ads on the homepage will definitely attract more and more viewers. Now, one can change the position of the advertisements on the homepage which can increase the CTR too. Let us learn how to modify and display ads on the homepage.
Displaying Ads on WordPress Homepage by editing the Themes
- Sign in to WordPress.
- Browse to Appearance, click Editor and open Index.php.
- Now select the position of the advertisement to be displayed, and then paste the code given below. <?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>YOUR ADVERTISEMENT CODE HERE<?php } ?>
- D. Here can overwrite the phrase YOUR ADVERTISEMENT HERE with your codes.
- E. Now save the above changes.
A WordPress Plug-in to ease displaying ads on homepages
A plug-in exclusive for WordPress helps one in displaying certain advertisements on the homepage without altering the theme files. The best plug-in for serving Adsense ads can be obtained from Whydowork.com. This plug-in can easily display ads on your posts and homepages. It also helps one in aligning the ad for a better fit with the theme. Follow the below steps to use this plug-in.
- Download Adsense plug-in WhyDoWork
- Install this WordPress plug-in and initiate the activation from the control panel.
- Browse to the Settings, and choose WhyDoWork Adsense.
- Several options are available here. As many as 10 different advertisement cipher codes can be added and customized. The locations for all the advertisements can also be chosen.
- Now select the advertisement code and paste the code into the Code#01. Save the settings.
- Open Front Page and scroll down to archives from Categories and select Code#01 for Advertisements.
- Align the advertisement and choose the number of posts, for which this ad will be displayed.
- Saving the Settings completes the job.
I do not like to copy and paste adsense codes. So, I use plugins at my blog. The plugin I use is Best Google Adsense
http://wordpress.org/extend/plugins/best-google-adsense/