WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. MacItaly
    Member
    Posted 1 year 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.

    Mac

    http://wordpress.org/extend/plugins/widget-logic/

  2. Ov3rfly
    Member
    Posted 1 year ago #

    WPML offers detailed instructions for this:
    http://wpml.org/2011/03/howto-display-different-widgets-per-language/

  3. MacItaly
    Member
    Posted 1 year 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