למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
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 | לפני חודש 9, שבוע 1 | |
|
WPML 4.7.0-b.1 crashed my website
נפתח על ידי: acs001 ב: English Support |
|
0 | 5 | לפני שנה 1, חודש 3 | |
|
I want to remove a flag my homepage doesn't need
נפתח על ידי: acs001 ב: English Support |
|
2 | 5 | לפני שנה 4, חודש 4 | |
|
Flag issues
נפתח על ידי: acs001 ב: Chat Support |
|
1 | 2 |
לפני שנה 4, חודש 9
|