• Resolved stormymondays

    (@stormymondays)


    My site uses Polylang, the default options work correctly out of the box. I’ve been following the documentation in order to output some language-specific scripts.

    The problem is the content of this variable:
    if ( $wpml_lang === 'es' )

    On my install, the values are “_es” for Spanish and “_en” for English. I don’t know if this is due to using Polylang or something else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @stormymondays

    Thanks for using our plugins.

    If the variables are different to default, did you try to edit the condition to match your language values?

    if ( $wpml_lang === '_es' )

    Thread Starter stormymondays

    (@stormymondays)

    Yes, thanks. Editing the condition works, but I was wondering if it’s expected for the variables to be different from the documentation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang wpml_lang variable’ is closed to new replies.