• Resolved lances

    (@lances)


    Hi,

    I moved from Display Widgets to Widget Options. However I am having problem with hiding a gravity Contact form on Vi language. I did tick on every page with Vi language however on home page it is still not hidden.
    Could I do it with Class or ID, or Logic? Please instruct me how to do it to hide widget on all pages with Vi language.
    Thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Thank you very much for choosing Widget Options! Regarding your concern, are you using WPML? If so, you can use the Display Widget Logic option and add this code to hide on English language :

    ICL_LANGUAGE_CODE != 'en'

    Let me know how it goes. Thanks!

    Cheers,
    Jeffrey

    Thread Starter lances

    (@lances)

    Thank you for answer. It works. I see the WPML Widget has the same function, but I will stick with your Logic.

    @lances Sounds perfect ?? Sticking with the Display Widget Logic is better since you can set multiple languages and you won’t be needing to install another plugin ?? I hope you are loving the other plugin features.

    Thread Starter lances

    (@lances)

    last question: I am not so familiar with code so if there are other languages I just need to change EN into the other language id?

    • This reply was modified 7 years, 6 months ago by lances.

    Hi,

    I can’t find the list on wpml site either. You can ask the plugin support for the list though. They might have the complete list. Thanks!

    Cheers,
    Jeffrey

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide widget on English language’ is closed to new replies.