Skip Navigation

Open

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) ) {
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>