Title: Replacing header
Last modified: November 15, 2022

---

# Replacing header

 *  Resolved [barb55](https://wordpress.org/support/users/barb55/)
 * (@barb55)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/replacing-header-4/)
 * 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!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/replacing-header-4/#post-16200147)
 * Hi there,
 * this:
 * `echo do_shortcode('[wp_reusable_render id='74']');`
 * change to:
 * `echo do_shortcode('[wp_reusable_render id="74"]');`
 *  Thread Starter [barb55](https://wordpress.org/support/users/barb55/)
 * (@barb55)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/replacing-header-4/#post-16200155)
 * Hello,
 * thank you so much! It did the job!
 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/replacing-header-4/#post-16200217)
 * Glad to hear that

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replacing header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/replacing-header-4/#post-16200217)
 * Status: resolved