WordPress.org

Ready to get started?Download WordPress

Forums

How do you replace login/logout text with image? (1 post)

  1. nodadenada
    Member
    Posted 4 years ago #

    In the following PHP code (in the wp-includes/general-template.php file), what code would you use in order to replace the 'Log in' and 'Log out' text with a graphic image? - Thanks, Lynn
    function wp_loginout($redirect = '') {
    if ( ! is_user_logged_in() )
    $link = '' . __('Log in') . '';
    else
    $link = '' . __('Log out') . '';

    echo apply_filters('loginout', $link);
    }

Topic Closed

This topic has been closed to new replies.

About this Topic