Người dùng này không có chủ đề yêu thích nào.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã tạo
| Trạng thái |
Chủ đề
|
Người hỗ trợ | Ý kiến | Bài viết | Mới nhất |
|---|---|---|---|---|---|
|
Privacy Policy text not translated in Spanish Login page
1
2
3
Được bắt đầu bởi: acs001
trong: English Support
Problem: // Remove the default privacy policy link
add_action( 'login_footer', function() {
// Hide the default Privacy Policy link via CSS
echo '<style>.privacy-policy-page-link { display: none !important; }</style>';
$original_link = 'https://www.elmundotech.com/privacy-policy/';
$original_text = 'Privacy Policy';
// Register strings for translation
do_action( 'wpml_register_single_string', 'Custom Login', 'Login Privacy Link', $original_link );
do_action( 'wpml_register_single_string', 'Custom Login', 'Login Privacy Text', $original_text );
// Apply translation
$privacy_link = apply_filters( 'wpml_translate_single_string', $original_link, 'Custom Login', 'Login Privacy Link' );
$link_text = apply_filters( 'wpml_translate_single_string', $original_text, 'Custom Login', 'Login Privacy Text' );
echo '<div style="text-align:center; margin-top: -30px;">'
. '<a href="' . esc_url( $privacy_link ) . '">' . esc_html( $link_text ) . '</a>'
. '</div>';
});After applying this solution, the 'Privacy Policy' text on the Spanish login page displayed correctly in Spanish. We recommend clearing the browser cache or using an incognito window to see the changes. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance at WPML support forum. |
|
0 | 32 | 10 months, 2 weeks trước | |
|
WPML 4.7.0-b.1 crashed my website
Được bắt đầu bởi: acs001 trong: English Support |
|
0 | 5 | 1 year, 4 months trước | |
|
I want to remove a flag my homepage doesn't need
Được bắt đầu bởi: acs001 trong: English Support |
|
2 | 5 | 4 years, 5 months trước |