Adding Google Adsense Leaderboard / Banner Below Header in Genesis


Unlike other WordPress themes, getting certain things done on Genesis can be challenging especially if you’re not used to how it works. The post I previously wrote on how to add Google Adsense to WordPress themes without a plugin doesn’t work on genesis if you’ve noticed. If you need to include Google ads below your header right after the menu in your Genesis theme without an adsense plugin, you can’t possibly do that by editing your header.php as in other themes.

I recently had to work with a client who insisted having ads below the menu and at first, I had no idea how to accomplish that (since I’ve never added any code in that position before) till I did a little tweaking here and there.

Now, this doesn’t work just for Adsense alone, you can also insert your affiliate banner in this position. It’s been said that ads placed in this position gives a higher CTR but I haven’t confirmed this since I don’t use ads in that position as you can see.

To insert your adsense code, affiliate banner or any custom link under your header, follow these easy steps:

- Download and install Simple  Genesis Hooks

- Go to Genesis > Simple Hooks

- Scroll down till you get to the content section

- In the box labelled genesis_before_content_sidebar_wrap Hook, paste this code:

<div align="center" style="width:100%; padding:5px; background: #ffffff;">
YOUR ADSENSE CODE, AFFILIATE LINK OR BANNER HERE
</div>

- Replace YOUR ADSENSE CODE, AFFILIATE LINK OR BANNER HERE with the adsense code you want here. It could be link unit or leaderboard.

You can also insert your affiliate link or banner in this position.

Note: You can change background: #ffffff to your own background color. The default background color in the code is white but you can change the code to black or whatever you want.

Like I mentioned already, this only applies to Genesis Child themes. If you’re using some other theme besides Genesis and Thesis, you should check this post instead.

avatar
Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on ! You can as well grab my feed and get updates through email.
avatar
avatar
avatar

Get free daily updates through email

Comments

  1. A nice blog post bro.
    Oscar Frank recently posted..Write Guest Post for OscarMiniMy Profile

  2. Pls mr don,i knw u must have don dis before.i received a mail from a guy asking to place either a text or banner ads.pls how much should i charge for a pr 2 blog base or different banner size from 125*125.i am new to dis.thanks

  3. Very useful blog post keep it up brov.
    I also need guespost for my blog

  4. To show the adsense only on homepage i would have to Use the code like This

    ADSENSE CODE


    Right?
    Derek recently posted..How To Root Samsung Galaxy S3My Profile

  5. To show the adsense only on homepage i would have to Use the code like This

    ADSENSE CODE

    Right?
    Derek recently posted..How To Root Samsung Galaxy S3My Profile

  6. This is what am looking for!!! thanks don.
    m-cash recently posted..How To Make Money Online Free With Clickbank.com | My Steps to Earn $30 Daily with ClickbankMy Profile

  7. thanks for this tutorial, am just using this tut to add ads on my site header.
    would like to know how to change favicon :)
    legendkid recently posted..Landmark University offer Agricultural Science Scholarships 2012My Profile

  8. To show the adsense only on homepage i would have to Use the code like This
    <b:if cond='data:blog.url == data:blog.homepageUrl'>
    <div align="center" style="width:100%; padding:5px; background: #ffffff;">
    ADSENSE CODE
    </div>
    </b:if>

    • b:if cond=’data:blog.url == data:blog.homepageUrl on works on blogger, it doesn’t work on WordPress. You may have to search for Widget Logic plugin to show or hide widgets in specific blog pages though I’ve not personally used it.

  9. Pls, am confuse here.i want to witdraw adsense money from gtbank to my saving.which do u prefer,using gt visa card or witdrawin d dolar and take it to black market.so wich 1 do u make use of.

  10. i need help with inserting mobile ads on my eleven40 themes mobile view…its showing empty space in replace on the one that is showing on the web view

    help someone
    deco_slim recently posted..Google’s Celebrate Its 14th Birthday TodayMy Profile

  11. Great post of a help.Thanks
    Don Jos recently posted..HOW TO TAKE SCREENSHOT ON OPERA MINI ON BLACKBERRY WHEN BROWSINGMy Profile

  12. By updating your ad unit code, you’ll be able to make changes to your ad units from within your account, without updating your pages. Additionally you’ll have access to richer performance reports and optimization suggestions.
    Read More Video explantion here : http://topadsense.info/adsense-tips-update-your-ad-unit-code/
    Jack Slater recently posted..Google released an algorithm to penalize pages with too many adsMy Profile

  13. Hi Don,
    Thanks for the instructions. I know quite a few bloggers who are using Genesis that will find this helpful.

    I use Thesis and the Awesome Blogskin which has a built in widget for the header. All I need to do is grab the code from AdSense and add it to the widget. I’m not good at working with code so this is perfect for me.
    Ileane recently posted..AdSense for Feeds Dies, AdSense for Search Rocks!My Profile

    • I really like Thesis and it seems easier to use but I chose to go with Genesis because it can be used on several domains with a special license.Thanks for dropping by, Ms. Ileane.

  14. Customizing Genesis theme is easy if you have a good knowledge of CSS. Great tips though…thanks
    Nwosu Desmond recently posted..Tips to creating strong passwordsMy Profile

  15. Is there a way to add Adsense Leaderboard to all your posts at once in WordPress?
    Thanks

  16. This was so easy & worked perfectly!! I’ve been looking for this coding for a while, and you saved the day!

  17. I am very happy to write comment on this blog because the post how to add google adsense/HTML codes to genesis without a plugin was very helpful for me I really thank you people for doing such a great work. Thanks a lot.

  18. avatar Pengetahuan produksi says:

    Thank you very much for your ….
    I will try to implement at my blog.

  19. Hey Don,,,
    I have some problem with my genesis themes and adsense, I want make any adsense code in archive, the first post at archive are adsense, how can i do that don? Thanks 4 your help b4… :)

    • Locate genesis_before_loop Hook, then use this:

      <?php if ( is_archive() ) {?>
      <div align="center" style="width:100%; padding:5px; background: #ffffff;">
      ADSENSE CODE HERE
      </div>
      <?php }?>
  20. Hi Nice topics well I am not s big fan of Installing Plugins even for a smallest feature like this.Here is a Tutorials which does the same thing without using Plugins – http://www.wpstuffs.com/banner-ads-below-menu-on-genesis-child-themes/

  21. thanks Dc for this article, i so much appreciate it
    make money online recently posted..Hello world!My Profile

  22. Thank you sir for helping me to customize Google adsense banners.Thanx again sir
    sunil recently posted..How To Improve Page Load Time Or Site SpeedMy Profile

  23. A notable option to view Google Adsense Leaderboard and Banner Below Header.
    Tagon recently posted..How Digital Certificates are Concealing MalwareMy Profile

  24. Yes. It works. Thanks Doncaprio.

  25. Thanks alot for this wonderful article don, please can you show me how to display ads only inside posts?
    thanks alot.
    Dailyschoolnews recently posted..Ekiti State University Amended School Calendar For 2012/2013 Academic SessionMy Profile

Speak Your Mind

*

CommentLuv badge