WordPress.org

Ready to get started?Download WordPress

Forums

Different languages, different header images (4 posts)

  1. Look J. Boden
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    moderator
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Nice, thanks for the link!

Topic Closed

This topic has been closed to new replies.

About this Topic