WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
How to change Header depending on language (6 posts)

  1. qualalbatroz
    Member
    Posted 1 year ago #

    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/

  2. siskoto
    Member
    Posted 11 months ago #

    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

  3. qualalbatroz
    Member
    Posted 11 months ago #

    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

  4. tapdancer
    Member
    Posted 11 months ago #

    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.

  5. tapdancer
    Member
    Posted 11 months ago #

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

  6. tapdancer
    Member
    Posted 11 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic