Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Marc,

    I noticed that you have managed to make your header image change according to the language chosen by the user. I’m trying to do the same with my website. I would appreciate if you share with me how you achieved that. Did you use another plugin?

    Thanks,

    Silvia

    Thread Starter qualalbatroz

    (@qualalbatroz)

    Hi Silvia,

    Unfortunately I didn’t solve my problem. If you look closely I’ve got two different headers that alternate randomly and with no relation to the chosen language.
    In the WP Dashboard>Appearance>Header I uploaded both headers and chose
    “Random: Show a different image on each page.”
    It’s the best solution I could come up with.
    Sorry.
    Marc

    I’m also working on a site right now that needs this. I was thinking there must be a plugin that will do this???? Did you investigate that? I was also thinking there is probably conditional code that can go in the header.

    I will post if I figure this out.

    I think this will work. I don’t have time to try it today.
    <?php
    if (is_category(‘es’)){
    include(TEMPLATEPATH.’/header-spanish.php’);}
    else {
    include(TEMPLATEPATH.’/header.php’);}
    ?>

    or it might be considered a taxonomy so it would be is_tax

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change Header depending on language’ is closed to new replies.