ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
Privacy Policy text not translated in Spanish Login page
1
2
3
เริ่มโดย: acs001
ใน: 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 | 6 months, 2 weeks มาแล้ว | |
|
WPML 4.7.0-b.1 crashed my website
เริ่มโดย: acs001 ใน: English Support |
|
0 | 5 | 1 year มาแล้ว | |
|
I want to remove a flag my homepage doesn't need
เริ่มโดย: acs001 ใน: English Support |
|
2 | 5 | 4 years, 1 month มาแล้ว | |
|
Exceeded the max questions resource
เริ่มโดย: acs001 ใน: English Support |
|
2 | 7 | 4 years, 10 months มาแล้ว |