Hi there,
1. Add this PHP Snippet to your site:
add_filter( 'render_block', function( $block_content, $block ) {
if (
! empty( $block['attrs']['className'] )
&& 'nofollow' === $block['attrs']['className']
) {
$block_content = str_replace( '<a ', '<a target="_blank" rel="nofollow" ', $block_content );
}
return $block_content;
}, 10, 2 );
How to add PHP: https://docs.generatepress.com/article/adding-php/
2. Select the block you have for your dynamic link and in Advanced > Additional CSS classes add: nofollow