Aleš Sýkora / March 1, 2024 / 0 comments
Conditional display by TranslatePress language in Oxygen Builder
1 min read / Oxygen Builder, TranslatePress, WordPress / Share on: Twitter, LinkedIn, Facebook
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?
- Add Oxygen Condition to the modal
- Select Dynamic Data > PHP function return value
- Set function name to get_locale
- Add the operator (is ==, is not !=)
- 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. 🍻