WordPress.org

Support

Support » Plugins and Hacks » How to change Header depending on language

How to change Header depending on language

  • Hi all,

    I’m working on this website: http://www.qualalbatroz.pt

    My problem is thus: I need the website header to change whenever I swich language. the English header image is different than the Portuguese header image.

    I tried to edit header.php, but the imager src is not there. (It’s the Oxygen theme)
    I’m using the qtranslate plugin for the language choice thingy.

    Thanks for your help!

    Marc

    http://wordpress.org/plugins/qtranslate/

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

    @siskoto

    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

    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

    tapdancer

    @tapdancer

    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.

    tapdancer

    @tapdancer

    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’);}
    ?>

    tapdancer

    @tapdancer

    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.