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

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
// 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

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
// 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