Oxygen Builder Integration

TranslatePress is also compatible with Oxygen Builder, that’s why if your website is built on Oxygen, you can display certain elements in specific languages directly from Oxygen’s interface.

How to Show/Hide Oxygen Builder Elements Based on Language

Go to the Oxygen editor interface and open the element you want to restrict based on a language. Then, click the Condition Settings icon and then Set Conditions:

Set condition in Oxygen Builder

Search in the Choose Condition drop-down, and select Dynamic Data:

Select dynamic data condition in Oxygen Builder

Then, choose PHP Function Return Value:

Choose PHP function return value

Set the Function Name equal to get_locale and then click Insert:

Enter get_locale PHP function

Set the value equal to the language code for the language that you want to target (this code is available by going to Settings → TranslatePress and looking in the Code column of the All Languages section):

Set language code for the TranslatePress Oxygen Builder integration

If you want to target another language, you can just repeat the same process to add another condition.

Set additional language conditions

Apart from showing or hiding Oxygen Builder elements based on language using the TranslatePress integration, if needed, rules to exclude entire pieces of content from translation can also be used.

Looking to go multilingual?

Get full access to TranslatePress and join 300.000+ website owners that grow their multilingual traffic.

Unlock PREMIUM Features

Or download FREE version