I am trying to insert a block above the Title in Wordpress using hook add_action
in functions.php
. But it displays above all blocks, even above the main menu.
add_action('wp_head', 'my_function_name');
function my_function_name(){
?>
CODE OF BLOCK
<?php
};
How to modify the code to make the block displayed above the H1 (title of the article)?