Title: two different headers
Last modified: August 30, 2016

---

# two different headers

 *  [peter azer](https://wordpress.org/support/users/peter-azer/)
 * (@peter-azer)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/)
 * my project containing Arabic and English pages, I created header-en.php for English
   and header-ar.php for Arabic than created index.php and I’ve wrote code get header-
   en.php.. so my problem when I create pages from screen admin wordpress its take
   index.php/ id number link..
    so how to remove the English header from some pages
   and add Arabic header for it to use on Arabic pages best regards..

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

 *  [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395482)
 * If u want only for pages so u can use custom options for header value.
 * like create **header_language = en or ar** and make condition on header where
   u have called.
 *  Thread Starter [peter azer](https://wordpress.org/support/users/peter-azer/)
 * (@peter-azer)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395489)
 * nice, and thanks for reply,
    I’ve created header-en.php and header-ar.php and
   called get header-en.php code on index.php, page.php and single.php.. that you
   mean Sir? but how to make other pages get header-ar.php code?
 *  Thread Starter [peter azer](https://wordpress.org/support/users/peter-azer/)
 * (@peter-azer)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395490)
 * or, is that found alternative for page.php and single.php ?
 *  [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395503)
 * See hear how to create multiple header and how to call easy way.
 * [Multiple header](http://codex.wordpress.org/Function_Reference/get_header#Multiple_Headers)
 * copy header.php make name u want like header-en.php and header-ar.php
 * so u can get this file using **get_header( ‘en’ ); get_header( ‘ar’ );**
 * so now:
    your code :
 *     ```
       $h = get_post_meta($post->ID, 'header_language', true);
       if($h=='en'){
          get_header( 'en' );
       }elseif($h=='ar'){
          get_header( 'ar' );
       }else{
         get_header();
       }
       ```
   
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395504)
 * [https://wordpress.org/support/topic/two-different-headers?replies=1&view=all](https://wordpress.org/support/topic/two-different-headers?replies=1&view=all)
 * Stop making duplicate threads and be patient. If you don’t like waiting for people
   to help you then consider paying someone at [http://jobs.wordpress.net](http://jobs.wordpress.net)

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

The topic ‘two different headers’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/two-different-headers-1/#post-6395504)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
