Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active November 6, 2017 23:12
Embed
What would you like to do?
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