Skip to content

Instantly share code, notes, and snippets.

@vividvilla
Last active December 11, 2015 15:08
Show Gist options
  • Save vividvilla/4618464 to your computer and use it in GitHub Desktop.
Save vividvilla/4618464 to your computer and use it in GitHub Desktop.
How Show up Banner Ads below Primary Menu on Genesis Child Themes - http://www.wpstuffs.com/banner-ads-below-menu-on-genesis-child-themes
/** 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">',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment