Aleš Sýkora / March 1, 2024 / 0 comments

Conditional display by TranslatePress language in Oxygen Builder

Post summary: If you need to display section or some Oxygen Builder content only in some language, you can do it easily with TranslatePress and Oxygen Conditionals.

Today I need to display Oxygen Builder modal, only within Czech language version of mine website, which is being translated by TranslatePress automatic translations. How to do that?

  1. Add Oxygen Condition to the modal
  2. Select Dynamic Data > PHP function return value
  3. Set function name to get_locale
  4. Add the operator (is ==, is not !=)
  5. Add the language code

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts