Different languages, different header images (4 posts)

  1. Look J. Boden
    Posted 3 years ago #

    Hi there,

    For a bilingual website (Dutch/English) I installed Qtranslate on a Weaver theme. Now my client wants a certain header image on the Dutch pages and a different header image on the English pages.

    Sounds clear and even simple to me, but HOW to do this?
    I searched WP, W3schools and other stuff. Every forum gives me another solution. I think it will work with some kind of 'If... else' code, but I really don't know how to write it and where to put it exactly.

    Please WP-friends, can you help me?

  2. Broezer
    Posted 3 years ago #

    This is exactly what I'm also trying to do. (Also the Dutch/English stuff :) )
    First I'm going to finish up my basic HTML/CSS for the theme.

    Will be working on a solution later this week.
    In the meantime any suggestions would be welcome.

  3. keesiemeijer
    Posted 3 years ago #

    See this page (at the bottom): http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=9

    <?php if(qtrans_getLanguage()=='en'): ?>
    <img src="<?php echo $imgsrc; ?>" alt="English Image" />
    <?php endif; ?>
  4. Broezer
    Posted 3 years ago #

    Nice, thanks for the link!

Topic Closed

This topic has been closed to new replies.

About this Topic