Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter eplehans

    (@eplehans)

    I solved it guys.

    Just surround it with this:
    <?php if(qtrans_getLanguage() == “es”) : ?>
    <h1>This is Spanish</h1>
    <?php endif ?>
    <?php if(qtrans_getLanguage() == “en”) : ?>
    <h1>This is English</h1>
    <?php endif ?>

    And you’re good to go!

    chiappa

    (@chiappa)

    this made my day. thanks for sharing!

    this should do it as well:
    <?php _e("<!--:en-->english text<!--:--><!--:es-->spanish text<!--:-->"); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: qTranslate] Writing html in the template file with multiple languages’ is closed to new replies.