문제 개요
WPML과 함께 YITH WooCommerce Wishlist를 사용할 때 다음과 같은 문제가 발생할 수 있습니다. 플러그인의 Elementor 위젯(YITH Wishlist Add button)에 입력한 버튼 레이블이 번역된 페이지에서 기본 언어로 유지됩니다.
임시 해결 방법
Elementor 위젯의 레이블을 비워 두세요. 그러면 위젯은 플러그인의 YITHWishlistCustomizationLabels 설정에 있는 텍스트를 사용하며, 이 텍스트는 WPML문자열 번역에서 번역할 수 있습니다.
또는 WPML설정사용자 정의 XML 구성으로 이동하여 다음 코드를 추가하고 저장하세요:
XML
<wpml-config><elementor-widgets><widget name="yith_wcwl_add_to_wishlist"><fields><field type="YITH Wishlist: button label" editor_type="LINE">label</field><field type="YITH Wishlist: browse wishlist label" editor_type="LINE">browse_wishlist_text</field><field type="YITH Wishlist: already in wishlist label" editor_type="LINE">already_in_wishslist_text</field><field type="YITH Wishlist: product added label" editor_type="LINE">product_added_text</field></fields></widget></elementor-widgets></wpml-config>