Widget Logic
[resolved] WPML and multilingual site (3 posts)

  1. MacItaly
    Posted 2 years ago #

    Hi Alan,
    any way to recognize the language used in site, to show different widget per different languages?
    I cannot find a conditional tag that determine lang or, may be, also some string on path could be enough.
    I use WPML and it creates path like domain.com/en/.
    Did I missed something or it's impossible with WL?
    Some other plugin recognize it, so, somewhere, hidden...
    Any help will be appreciated, thanks in advance.



  2. Ov3rfly
    Posted 2 years ago #

    WPML offers detailed instructions for this:

  3. MacItaly
    Posted 2 years ago #

    Thanks Ov3rfly,
    I completely missed that thread :)
    So the answer is yes, there is a conditional tag and it is: "ICL_LANGUAGE_CODE == 'en'" where "en" is the language code.
    I'll try asap but no doubt that it works correctly.
    Thanks again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic