Last active
September 13, 2017 15:18
-
-
Save studiopress/76806645020d3c2abc2686c6a1f5a530 to your computer and use it in GitHub Desktop.
Hook widget area for Instagram feed 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 Instagram widget before footer. | |
add_action( 'genesis_before_footer', 'sp_instagram_feed_widget' ); | |
function sp_instagram_feed_widget() { | |
genesis_widget_area( 'instagram', array( | |
'before' => '<div class="instagram"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment