Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created July 27, 2013 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/6093219 to your computer and use it in GitHub Desktop.
Save braddalton/6093219 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'newsletter',
'name' => __( 'Newsletter', 'innov8tive' ),
'description' => __( 'Newsletter widget.', 'innov8tive' )
) );
add_action( 'genesis_after_post_content', 'custom_add_newsletter_box' );
function custom_add_newsletter_box() {
if ( is_singular( 'post' ) || is_page( array( 'about', 'contact-me' ) ) )
genesis_widget_area( 'newsletter', array(
'before' => '<div id="newsletter">',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment