Last active
November 6, 2017 23:12
-
-
Save studiopress/82d20bd3ca12b252b35eaef6bb98b135 to your computer and use it in GitHub Desktop.
Hook Newsletter widget area before footer.
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
<?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