Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active November 6, 2017 23:12
Show Gist options
  • Save studiopress/82d20bd3ca12b252b35eaef6bb98b135 to your computer and use it in GitHub Desktop.
Save studiopress/82d20bd3ca12b252b35eaef6bb98b135 to your computer and use it in GitHub Desktop.
Hook Newsletter widget area before footer.
<?php
// Do NOT include the opening php tag.
// Add newsletter widget area before footer.
add_action( 'genesis_before_footer', 'sp_newsletter_widget' );
function sp_newsletter_widget() {
genesis_widget_area( 'newsletter', array(
'before' => '<div class="newsletter"><div class="arrow-down"></div><div class="wrap">',
'after' => '</div></div></div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment