Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
| Stato |
Argomento
|
Supporter | Voci | Post | Freschezza |
|---|---|---|---|---|---|
|
Privacy Policy text not translated in Spanish Login page
1
2
3
Iniziato da: acs001
in: 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 | 8 mese, 2 settimana fa | |
|
WPML 4.7.0-b.1 crashed my website
Iniziato da: acs001 in: English Support |
|
0 | 5 | 1 anno, 2 mese fa | |
|
I want to remove a flag my homepage doesn't need
Iniziato da: acs001 in: English Support |
|
2 | 5 | 4 anno, 3 mese fa | |
|
Flag issues
Iniziato da: acs001 in: Chat Support |
|
1 | 2 |
4 anno, 9 mese fa
|