탐색 건너뛰기

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

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.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>