+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
  • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Wordpress
Adding Google Adsense Leaderboard / Banner Below Header in Genesis

Adding Google Adsense Leaderboard / Banner Below Header in Genesis

Wale Adekile
September 23, 2012

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.


Previous Post
Too Many Notifications on Google+? Here’ s how to Block them
Next Post
8 Reasons You Should Choose Samsung Galaxy S3 Over iPhone 5
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
Wordpress

How To Transfer WordPress From WampServer To cPanel

13 years ago
facebook embed
WebmastersWordpress

Fix: Facebook Post Embed not Working on WordPress

10 years ago

Recent Articles

wahl rapic clip hair clipper
Wahl Rapid Clip Hair Clipper Review: DIY Made Easy
BenQ LaptopBar Review: Luxury or Necessity?
yunmai easepro unboxed
Yunmai EasePro Massage Gun Review
g20
Teendow G20 Robot Vacuum and Mop Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
google workspace
How to Migrate Emails From Google Workspace/G Suite to cPanel
synology diskstation ds920+
Synology DiskStation DS920+ Review
playstation 4
Why I haven’t Upgraded to the PlayStation 5 Yet
pain
Started Watching Anime as an Adult? You’re Not Alone

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy