change wp_loginout text (3 posts)

  1. redcaiman
    Posted 6 years ago #

    hi there. one easy. how to change wp_loginout text to display for example to show when login "login" or "conectarse" and when logout "cerrar seccion". for moment i get defaults texts "iniciar sesion" &"Desconectar".
    thanks alot

  2. REDImei
    Posted 5 years ago #

    i have the same problem

  3. Michael
    Forum Moderator
    Posted 5 years ago #

    possibly in you language files;

    or with a filter added to functions.php of your theme:

    function loginout_text_change($text) {
    $login_text_before = 'Log in';
    $login_text_after = 'Sign-In';
    $logout_text_before = 'Log out';
    $logout_text_after = 'Sign-Off';
    $text = str_replace($login_text_before, $login_text_after ,$text);
    $text = str_replace($logout_text_before, $logout_text_after ,$text);
    return $text;

Topic Closed

This topic has been closed to new replies.

About this Topic