Tag Archives: how to add LINK UNIT to be shown below wordpress Nav bar

How to insert Google Adsense Link Units on wordpress below Nav menu bar

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

• Go to recommended ads, on the dropdown menu chose link AdsGOOGLE LINK UNITS

• 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’ ) ); ?>
<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’ ) ); ?>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– naijaonlinebiz ads –>
<ins class=”adsbygoogle”
(adsbygoogle = window.adsbygoogle || []).push({});

<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