WPML
Status
Resolved
Resolved in
WPML Multilingual CMS 4.7.4
Related plugin/theme
Divi
Topic tags
Compatibility

Overview of the issue

If you are using Divi theme, you may encounter issues where display conditions set in templates are not copied into their translated versions.

Workaround

Please, make sure of having a full backup of your site before proceeding.


  • Open …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Divi/DisplayConditions.php file.

  • Look for line 30.

  • Change:
    if ( 'categoryPage' === $condition['condition'] ) {

  • For:
    if ( in_array($condition['condition'], ['categoryPage','categories'], true) ) {

Alternatively, you can also manually edit your template and directly add the missing condition. However, keep in mind that it may get overridden if you update your translation.

All known issues →