Replacing header | WordPress.org

[ad_1]

Hi,

I have built a header with Greenshift that I would like to use instead of the default one.
The header template has a shortcode: [wp_reusable_render id=’74’]

Now I have unhooked the default header with this

add_action( 'after_setup_theme','tu_remove_header' );
function tu_remove_header() {
    remove_action( 'generate_header','generate_construct_header' );
}

and I have tried adding the shortcode with this

add_action( 'generate_header','example_function_name' );  
function example_function_name() {
    echo do_shortcode('[wp_reusable_render id='74']');
 }

but there must be something wrong in the PHP because it won’t let me save this. What am I doing wrong?
Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer