I’d like to use a page that i created in wordpress as a header in the whole site. I tried to add a function in functions.php to use “insert page” shortcode after the body tag but didn’t work. I’m not a developer in profession so will be greatful for any help. Thanks in advance.
Tried adding below in the header.php
<body <?php body_class(); ?>>
<?php do_action('add_custom_header'); ?>
and in functions.php
function add_custom_header_page() {
<?php echo do_shortcode( '[insert page='78' display='content']' ); ?>
}
add_action('add_custom_header', 'add_custom_header_page');
What I added in functions is already broken. Need an alternative way.