Have you been searching for way to display Google AdSense link units below the navigation menu bar of your wordpress blog? If your answer is yes then you are on the right place.
Before, I proceed to show you how to insert Google Adsense link units below your blog Nav bar on your wordpress theme, let’s look at what Google has to say about link ads.
“If you want ad units that adapt to your site and your readers’ interests, consider link units. Each link unit displays a list of topics relevant to the content of your site, and when users click on one of these topics, they’re brought to a page of Google ads related to that topic. Though you won’t receive earnings for clicks on the topics, you’ll be paid for user clicks on any of the ads on the resulting page. Link units are particularly effective for more focused content, where visitors tend to be seeking specific information. Their varied formats are space-efficient, too, so we recommend incorporating link units into new and unusual locations throughout your site. Remember that three link units per page can be placed in addition to the existing three standard AdSense ad units on that page”.
Now, you can see that Google AdSense link unit is one of the best performing AdSense ads which many webmasters tend to ignore. I assume that you are here because you want to try the link units’ ads on your blog. I will walk you through on how to add the link unit code on your wordpress blog, so as to display the link ads horizontally below the navigation bar. If take a look at the top of this page on which you are, right now; below the navigation menu bar you see the Google link unit ads well displayed. I think you appreciate how those link unit ads are displaying. You can also implement it on your own wordpress blog after reading through this article.
First, let’s talk about how to create the Google link unit Code,
How to create Google AdSense link unit codes
• Log on to your Google AdSense account
• Click on My ads and then new ads button
• Go to recommended ads, on the dropdown menu choose link Ads
• Click on 780X15 link ads for horizontal link Ads
• Finally, click on get code button to generate the link unit code.
Name the code anything you like and copy it. You can save the code any where you like on your computer.
Now, hove over your wordpress blog to insert the code to your theme.
This is how to insert the Google link units to your wordpress blog below Nav menu bar
STEP1. Log on to your wordpress dashboard, go to Appearance on left hand side of your dashboard and then on dropdown menu displayed, click on Editor
Wait a bit! Before you start editing anything on your wordpress theme, make sure that you are doing this on your wordpress child theme. If you have not created a child theme for your wordpress theme, you can do that now. Follow the steps on this article, How to create & install a child theme to create a wordpress child theme.
Step 2. Go to header.php file. Locate this code;
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?>
</nav>
</div>
<div id=”search-container” class=”search-box-wrapper hide”>
<div class=”search-box”>
<?php get_search_form(); ?>
Step 3. In between the </nav> tag and </div> tag,
Paste the Google AdSense link unit code you have created as show below.
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?>
</nav>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– naijaonlinebiz ads –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:15px”
data-ad-client=”ca-pub-8935749304488678″
data-ad-slot=”8991383235″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div id=”search-container” class=”search-box-wrapper hide”>
<div class=”search-box”>
<?php get_search_form(); ?>
Step 5. Finally, click on update File (header.php file) and you are done. Visit you site to see how beautiful those link units’ ads are being displayed.
If you this article help you remember to share it and link to it
I am using a wordpress theme, can I copy and paste the adsense code inside my side widgets in other to display my adverts.
Yes, of course!
I was banned from Adsense a few years ago. Is there any way I could have my account re-instated?
Hello Divaclan,
once you are banned from Google Adsense program; you are banned for life.You cannot re-instate that account again.
Hello Friend!
U made things look very simple. I am a newbie to wordpress and your guide helped me to place ad link ads under navigation bar. Now my question is how to place ad link units inside a post. (You have one within your post below 2nd paragraph). Kindly say me the html code to place an ad like that in my website. Thanks in advance
Hello Balamurali,
before I work you through the steps of placing Google Ad link units inside a post, I want to be sure that you have install a child theme since you are a newbie. If you have not, this link: http://www.naijaonlinebiz.com/how-to-create-install-a-child-theme-of-wordpress-theme-2014/ will show you reasons and how to do that. I used wordpress theme 2014 as a sample and it is applicable to all wordpress themes. Once, you have done that then let me know.