Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva

cre8tivediva/genesis-changes.php Secret

Last active Oct 24, 2019
Embed
What would you like to do?
Add full width Instagram Feed Widget to Gallery Pro
// Register Instagram widget area.
genesis_register_sidebar( array(
'id' => 'instagram-feed',
'name' => __( 'Instagram', 'theme-name' ),
'description' => __( 'This is the instagram feed widget area.', 'theme-name' ),
) );
// Add Instagram widget before footer.
add_action( 'genesis_before_footer', 'c8d_instagram_feed_widget' );
function c8d_instagram_feed_widget() {
genesis_widget_area( 'instagram-feed', array(
'before' => '<div class="instagram-feed">',
'after' => '</div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.