Fix for Polylang + Divi (backend editor switches to primary language)
-
Divi & Polylang have a weird bug when you have both installed on the same website: no matter what your user account has selected as its preferred language, Divi’s backend builder will always show the translation for the primary language set in Polylang.
To circumvent this, you can insert this snippet into your functions.php (use a Child Theme!) and the backend builder will stay in English. If you prefer a different language, you can of course change the name of the .mo file accordingly.
If you remove the quotes around the ” && get_current_user_id() === 9 ” this will only apply to the user with the user ID 9; if your blog is being maintained by several people and only you want to see the backend in English, remove the comments and change it to your user ID. ??
- The topic ‘Fix for Polylang + Divi (backend editor switches to primary language)’ is closed to new replies.