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:
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.
Twitter: oscarfranky
says:
A nice blog post bro.
Oscar Frank recently posted..Write Guest Post for OscarMini
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
You can email me, Dedi, with your blog URL. caprio at capriofiles dot com
Twitter: oscarfranky
says:
I would rather ask via pm on facebook or Gplus than make it public. Your alexa rank also counts……
Oscar Frank recently posted..3 Things Android Tablet Monitoring Software Tells You About Your Kid
Twitter: TeeVibes
says:
Very useful blog post keep it up brov.
I also need guespost for my blog
Twitter: xlimderek
says:
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 S3
Twitter: xlimderek
says:
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 S3
I really dont get it. Can u parse the code before pasting here?
Twitter: mnocash2
says:
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 Clickbank
Twitter: nigeriaschools
says:
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 2012
Twitter: xlimderek
says:
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.
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.
This is on the wrong post, you can email me or send a personal message instead.
Twitter: deco_slim
says:
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 Today
Twitter: Donjos10
says:
Great post of a help.Thanks
Don Jos recently posted..HOW TO TAKE SCREENSHOT ON OPERA MINI ON BLACKBERRY WHEN BROWSING
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 ads
Twitter: Ileane
says:
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!
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.
Twitter: mavtrevor
says:
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 passwords
Twitter: FrankJHavlik
says:
Is there a way to add Adsense Leaderboard to all your posts at once in WordPress?
Thanks
Yes, you can either check out this post if you’re using Genesis theme or use Post Layout plugin instead.
This was so easy & worked perfectly!! I’ve been looking for this coding for a while, and you saved the day!
The pleasure’s mine, Beth.
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.
Thank you very much for your ….
I will try to implement at my blog.
Twitter: RBoOnline
says:
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:
<div align="center" style="width:100%; padding:5px; background: #ffffff;">
ADSENSE CODE HERE
</div>
<?php }?>
Twitter: wp_stuffs
says:
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/
Twitter: omoscowonder
says:
thanks Dc for this article, i so much appreciate it
make money online recently posted..Hello world!
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 Speed
Twitter: javamazon
says:
A notable option to view Google Adsense Leaderboard and Banner Below Header.
Tagon recently posted..How Digital Certificates are Concealing Malware
Yes. It works. Thanks Doncaprio.
Twitter: omoscowonder
says:
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 Session
That’s possible with the conditional statements in the codes above. It’s all there.
Twitter: omoscowonder
says:
Thanks DOncaprio for the answer, i do really appreciate it.
Am using genesis educational themes, and i want my 728 X 90 ads to appear only inside post.
Educational News recently posted..FUTO Admission Requirements, Direct Entry Requirements, JAMB and Post-UTME Cut-Off Mark for 2013/2014 Admission
You can do that with conditional statements. Please check this article: http://www.doncaprio.com/2012/11/how-to-add-google-adsense-html-codes-to-genesis-without-a-plugin.html