Skip to content

Instantly share code, notes, and snippets.

@barbwiredmedia
Created May 1, 2014 21:10
Show Gist options
  • Save barbwiredmedia/060fb519f7a921eee1c0 to your computer and use it in GitHub Desktop.
Save barbwiredmedia/060fb519f7a921eee1c0 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