탐색 건너뛰기

Open

Overview of the issue

When you use Cornerstone plugin (or PRO theme), custom CSS/JS from the original language is copied to the translated pages if WPML Media Translation plugin is active.

Workaround

To fix this issue on your site and be able to have different custom CSS/JS on the translated pages, please follow these steps:

  1. Back up your website files and database.
  2. Add this code snippet to your theme’s functions.php file:
    function wpml_compsupp_5527_wpml_pb_copy_meta_field( $value, $translated_post_id, $original_post_id, $meta_key ) {
        if ( '_cornerstone_settings' === $meta_key ) {
            return WPML_PB_Handle_Custom_Fields::slash_json( get_post_meta( $translated_post_id, $meta_key, true ) );
        }
        return $value;
    }
    add_filter( 'wpml_pb_copy_meta_field', 'wpml_compsupp_5527_wpml_pb_copy_meta_field', 10, 4 );
    

답장을 남겨주세요

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

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