I am getting many requests from my friends and readers to show them how to place Google Adsense Ads and Affiliate Banners below the Primary menu.
Especially the Tech bloggers to whom Adsense is the best way to monetize,So they need this workaround to show up 728*90 Leaderboard Ads.
Since Genesis framework is fairly popular among the bloggers in this tutorial I am going to show how to register a Widget below the Primary menu on Genesis child themes so that you can use it to easily display the Leaderboard Ads and other affiliate banners.
Similarly you can also add widget for showing Ad banners,Adsense tags or even newsletter widgets below the post content in Genesis Child Themes
Register a Custom Widget
Open the Your current themes functions.php.You can edit this from your dashboard by visiting Dashboard >> Appearance >> Editor >> functions.php
or
you can use FTP clients like Filezilla to open the file which will be under /wp-content/themes/child-theme-name
Add the following code at the end of the file
/** Register Topads widget area */ genesis_register_sidebar( array( 'id' => 'topads', 'name' => __( 'topads', 'custom-theme' ), 'description' => __( 'Here you can place 720*90 Ad', 'custom-theme' ), ) ); /** Add topads widget after the primary menu */ add_action( 'genesis_before_content', 'custom_theme_topads' ); function custom_theme_topads() { genesis_widget_area( 'topads', array( 'before' => '<div id="topads widget-area">', ) ); }
Now go to Dashboard >> Appearance >> Widgets and you can see new widget called “topads” registered.
You can place anything like I mentioned above, the Leaderboard Ads,Affiliate Banners or even your Newsletter Widget.
Do you want a Video of this Tutorial ?
I hope this little tutorial helps you.I am thinking to create videos for my WordPress Tutorials.
If you wish this tutorial to be published as a Video…Comment back…Good response from your side will inspire me to start the work.
Also dont forget to Subscribe our Newsletter below to get notified about the latest WordPress Hacks.
[mybox] Thesis Version of this Tutorial will be released Shortly [/mybox]