WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
qtranslate Headerimage Kopfbild (3 posts)

  1. asking244
    Member
    Posted 7 months ago #

    I have a German and an English version.

    The header image should be on the German "deutschesbild.jpg" and the English "englischesbild.jpg".

    How can I do that?
    Does anyone know a solution?

    Thanks in advance!

    ++++++++++++++++

    Ich habe eine deutsche Version und eine englische.

    Das Kopfbild soll auf der deutschen "deutschesbild.jpg" und auf der englischen "englischesbild.jpg" sein.

    Wie kann ich das anstellen?
    Kennt jemand eine Lösung?

    Vielen Dank im voraus!

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

  2. nilsen
    Member
    Posted 7 months ago #

    If the theme has an option menu, you can enter this:

    [:de]http://www.domain.de/wp-content/uploads/logo.png[:en]http://www.domain.de/wp-content/uploads/logo_en.png

    Or hardcode this into the theme header (header.php) in the the theme folder:

    <?php if (qtrans_getLanguage() == 'en') : ?>
    <li><a href="/jabajaba">My best home</a></li>
    <?php else : ?>
    <li><a href="jabajaba/du">Mein Bestes Haus</a></li>
    <?php endif; ?>

    Links:
    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=385&start=30#p5024

    http://thematictheme.com/forums/topic/change-header-image-according-to-language-qtranslate/
    For further questions: you can contact me at nils@desisn.de

  3. asking244
    Member
    Posted 7 months ago #

    Thanks, but i mean:

    <?php if (qtrans_getLanguage() == 'en') : ?>
    <a href="http://www.domain.de/en"><img src="http://www.domain.de/wp-content/themes/my/images/eng.jpg" width="1024" height="200" /></a>
    <?php else : ?>
    <a href="http://www.domain.de/de"><img src="http://www.domain.de/wp-content/themes/my/images/de.jpg" width="1024" height="200" /></a>
    <?php endif; ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    NEXT QUESTION:

    <?php echo qtrans_generateLanguageSelectCode('image'); ?>

    IT WORKS perfect in horizontal Navigationmenü!!!

    <?php echo qtrans_generateLanguageSelectCode('text'); ?>

    IT DOESNT WORK in horizontal Navigationmenü.
    In IE and Firefox i don´t see anythink. In Opera i see little text.

    WHATS HAPPEND?????

    Thank you a lot!

Reply

You must log in to post.

About this Plugin

About this Topic