≡ Menu

[How-To Guide] Add Google Adsense Link Unit Below Navigation Menu In Thesis Theme

Thesis WordPress Theme one of the most popular and widely used WordPress premium theme because it comes with in-built SEO options and offers you to cut down all SEO plugins from your blog.

If you have not get your copy of Thesis WordPress Theme, then get it now:

Sign-Up Link for Thesis WordPress Theme

Already, I have covered many tutorials on Adding AdSense in Thesis WordPress Theme, here is a quick recap:

How to Add Google AdSense Revenue Sharing Code in Thesis WordPress Theme

How to Add Google AdSense Ad Code After Post Title in Thesis WordPress Theme

How to Add Google AdSense Ad Code After End of Post Content in Thesis WordPress Theme

All these tutorials help you to add, Google AdSense Ad code in Thesis WordPress Theme.

In this post, I’m sharing how to Add Google AdSense Link Unit below Navigation Menu in Thesis WordPress Theme. Here is a quick guide:

Step1: Log-in into wp-admin panel, go to “Thesis” tab and click on “Custom File Editor” as shown below:

adsense-link-unit-thesis-theme-wordpress

Step2: When you click on “Custom File Editor” (in step1), a new window open (as shown below). Now select “custom_functions.php” and click on “Edit selected file”.

adsense-link-unit-thesis-theme-navigation-menu

Step3: When you click on “Edit selected file” (in step2), it open a new window as shown below:

adsense-link-unit-thesis-theme2

Step4: Now you need to copy this code:

function adsensemenu() { ?>

<ul id=”adsensemenu”>

Your AdSense Ad Code Here!

</ul>

<?php }

add_action(‘thesis_hook_before_content_box’,’adsensemenu’);

Step5: After copying this code, paste this code in “custom_functions.php” (in step3) and after pasting this code click on “Big Ass Save Button” shown below:

adsense-link-unit-thesis-theme-navigation-menu

Step6: Now to style above code, you have to add some CSS in it. Copy this CSS code

.custom ul#adsensemenu {

height: 25px;

background:#333 none repeat scroll 0 0;

padding-top: 5px;

width: 100%;

}

Step7: Paste this CSS code in “custom.css” file and click on “Big Ass Save Button” as shown below

adsense-link-unit-thesis-theme4

Step8: Congratulations, you have successfully added AdSense Link Unit Below Navigation Menu.

If you have any query let me know via comments and if you have not get your copy of Thesis WordPress Theme, then get it right now:

Sign-Up Link for Thesis WordPress Theme

Do you find this useful? If yes, then why not share it with your friends also.

{ 2 comments… add one }
  • Thanks vivek for sharing this

  • Thank you so much man….Your knowledge in adsense is great…Can you figure out the same thing for a theme called “NEWSHUN”
    ?
    please do let me know 🙂

Leave a Comment