Skip to content

Instantly share code, notes, and snippets.

@gottalovelattes
Created March 11, 2017 02:26
Show Gist options
  • Save gottalovelattes/49a87ca05628c6f7bfcd82a57879c418 to your computer and use it in GitHub Desktop.
Save gottalovelattes/49a87ca05628c6f7bfcd82a57879c418 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', 'instagram_feed_widget' );
function 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