GitHub Gists

The Gists module for Beaver Builder allows you to easily insert your favorite Gists from GitHub. You can customize whether meta is shown, and add a caption with typography.

Gist with Caption

<?php
// For User Profile Picture
add_filter( 'mpp_gutenberg_user_role', function( $role ) {
return 'subscribers';
} );
// For Gutenberg
add_filter( 'rest_user_query', function( $args, $r ) {
if( isset( $args['who'] ) && 'authors' == $args['who'] ) {
$args['who'] = 'subscribers';
}
return $args;
}, 10, 2 );
Allow Subscribers in User Profile Picture and Gutenberg

Gist Without Meta and Caption with Padding and Background Color

<?php
// For User Profile Picture
add_filter( 'mpp_gutenberg_user_role', function( $role ) {
return 'subscribers';
} );
// For Gutenberg
add_filter( 'rest_user_query', function( $args, $r ) {
if( isset( $args['who'] ) && 'authors' == $args['who'] ) {
$args['who'] = 'subscribers';
}
return $args;
}, 10, 2 );

Options

The Gists module is very customizable.

Gist Options General
Gist Options General
Gist Style Options
Gist Style Options