Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active September 13, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save studiopress/76806645020d3c2abc2686c6a1f5a530 to your computer and use it in GitHub Desktop.
Save studiopress/76806645020d3c2abc2686c6a1f5a530 to your computer and use it in GitHub Desktop.
Hook widget area for Instagram feed before footer.
<?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