This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed to hide membership options on their website when the current language is set to Chinese, as the 'alipay' payment method does not support 'Membership' features for Chinese customers.
Solution:
We recommended using CSS to hide specific elements based on the language. The correct CSS code to add under Appearances > Customizer > Custom CSS in WordPress is:
html[lang="zh-hans"] .elementor-column.elementor-col-33.elementor-top-column.elementor-element.elementor-element-43c630d7 {<br /> display: none !important;<br />}
This code targets the HTML language attribute for Chinese ('zh-hans') and applies a style to hide the membership elements. Additionally, for translating menus and content, we suggested using the manual translation options provided by WPML. You can find more details on translating menus manually at Translating Menus Manually and using different translation editors at Using Different Translation Editors for Different Pages.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML Support Forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 7 replies, has 2 voices.
Last updated by 3 years, 8 months ago.
Assisted by: Mihai Apetrei.