Last active
December 11, 2015 15:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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