Title: Use a different header.php
Last modified: September 21, 2017

---

# Use a different header.php

 *  Resolved [Sam Pryor](https://wordpress.org/support/users/sampryor/)
 * (@sampryor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/)
 * Hi,
    I need to use a different header for logged in users, for all my logged 
   in templates I call a different header: get_header(‘client’); This loads ‘header-
   client.php’ instead of the default header.php.
 * The templates in theme-my-login do not include the standard header call at the
   top ‘get_header();’ so I cant see how to swap the header?
 * Can you help?

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

 *  [retrovertigo](https://wordpress.org/support/users/retrovertigo/)
 * (@retrovertigo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9530149)
 * I just found this, might help you, too: [https://web-design-weekly.com/snippets/load-a-different-header-in-wordpress/](https://web-design-weekly.com/snippets/load-a-different-header-in-wordpress/)
 *  Thread Starter [Sam Pryor](https://wordpress.org/support/users/sampryor/)
 * (@sampryor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9534421)
 * [@retrovertigo](https://wordpress.org/support/users/retrovertigo/), yes this 
   is exactly what I’m doing.
    Is there a function to identify if a page is a Theme
   My Login page? Something like this?
 *     ```
       if(is_theme_my_login_page('your-profile'))
       {
           get_header('client');
       }
       ```
   
 *  [retrovertigo](https://wordpress.org/support/users/retrovertigo/)
 * (@retrovertigo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9544299)
 * No idea Sam, maybe ask as a new question here, or try [https://stackoverflow.com/questions/tagged/wordpress](https://stackoverflow.com/questions/tagged/wordpress)
 * good luck 😉
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9566913)
 * TML pages are WP pages – thus the `page.php` template will be used, unless `page-
   login.php`, etc exist.
 * That said:
 *     ```
       theme_my_login()->get_object()->is_tml_page();
       ```
   
 *  Thread Starter [Sam Pryor](https://wordpress.org/support/users/sampryor/)
 * (@sampryor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9566964)
 * Oh of course! I just changed the template and it worked right away.
    Haha, whoops.
   Thank you! :@

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

The topic ‘Use a different header.php’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

## Tags

 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * 5 replies
 * 3 participants
 * Last reply from: [Sam Pryor](https://wordpress.org/support/users/sampryor/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/use-a-different-header-php/#post-9566964)
 * Status: resolved