Hi Justin,
The only way to do this with GB button block is to use a filter like this:
add_filter( 'render_block', function( $content, $block ) {
if (
'generateblocks/button' === $block['blockName'] &&
(! empty( $block['attrs']['className'] ) && strpos( $block['attrs']['className'], 'button-me' ) !== false)
) {
return str_replace('nofollow', 'me', $content);
}
return $content;
}, 10, 2 );
You need to add rel=”nofollow” to the button, add an additional CSS class to the button block, eg. button-me
, then the filter above will replace the nofollow
with me
.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/