Created
July 27, 2013 01:04
-
-
Save braddalton/6093219 to your computer and use it in GitHub Desktop.
This file contains 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
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