WordPress.org

Ready to get started?Download WordPress

Forums

change wp_loginout text (3 posts)

  1. redcaiman
    Member
    Posted 4 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
    Member
    Posted 3 years ago #

    i have the same problem
    ==:=0

  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

    possibly in you language files;

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

    add_filter('loginout','loginout_text_change');
    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