Hi Rostyslav,
You can add my-rel-link
to the class list of the Headline Block as such: https://share.getcloudapp.com/jkuXWy6g
Then add this PHP snippet:
add_filter( 'render_block', function( $block_content, $block ) {
if ( !is_admin() && 'generateblocks/headline' === $block['blockName'] && 'my-rel-link' === $block['attrs']['className'] ) {
$block_content = str_replace( '<a ', '<a rel="nofollow noopener" ', $block_content );
}
return $block_content;
}, 10, 2 );
Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets
Alternatively, you can open the code editor in the Block Editor and modify the HTML structure directly: https://share.getcloudapp.com/yAu1Q4Bo
Hope this helps!