Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Forked from barbwiredmedia/qtranslate.php
Created October 25, 2017 13:19
Show Gist options
  • Save mrfoxtalbot/60c42b1b65c7789f180a199482835425 to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/60c42b1b65c7789f180a199482835425 to your computer and use it in GitHub Desktop.
Wordpress qTranslate plugin conditional for in the template. For in navigation menus use <!--:en-->Home<!--:--><!--:es-->Inicio<!--:--> as a switch
<?php if (qtrans_getLanguage() == 'en') { ?>
<!-- stuff for English -->
<?php } elseif (qtrans_getLanguage() == 'es') { ?>
<!-- other stuff Spanish -->
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment