• hi,
    im beginning to create project with Arabic and English language,
    I’ve created header-en.php for English pages and header-ar.php for Arabic pages,
    I asked this question before.. the answer it was to use multiple header use this 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();
    }
    I’ve already paste this code to page.php and not worked,
    also I tried to use this code:

    if ( is_home() ) :
    get_header( ‘en’ );
    elseif ( is_404() ) :
    get_header( ‘404’ );
    else :
    get_header();
    endif;
    the second code that I tried its worked on the home page only, but what about pages created on the admin pages screen on wordpress and how to use page ID to get the header-en.php or header-ar.php
    so my first question how to use multiple headers and working on the pages id ?
    my second question is that found alternative for page.php and index.php?
    because I need to make home page for Arabic and home page for English..
    please I need help I’ve to finish the website and review it for client after two days ago..
    many thanks for wordpress members and team
    best regards..

  • The topic ‘multiple headers & footer’ is closed to new replies.