Title: Can I define another &#8220;get_header&#8221; function to header2.php?
Last modified: August 18, 2016

---

# Can I define another “get_header” function to header2.php?

 *  [toniee](https://wordpress.org/support/users/toniee/)
 * (@toniee)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/can-i-define-another-get_header-function-to-header2php/)
 * Hi,
 * I want another header2.php to run only on single page views, how do I add the
   function get_header2 to point to header2.php.
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/can-i-define-another-get_header-function-to-header2php/#post-499583)
 * Try using this:
 * `<?php load_template(TEMPLATEPATH . '/header2.php'); ?>`

Viewing 1 replies (of 1 total)

The topic ‘Can I define another “get_header” function to header2.php?’ is closed
to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/can-i-define-another-get_header-function-to-header2php/#post-499583)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
