Support » Themes and Templates » Change login text with an image

  • The following code is in general_template.php

    function wp_loginout() {
    	if ( ! is_user_logged_in() )
    		$link = '<a href="' . get_option('siteurl') . '/wp-login.php">' . __('Login') . '</a>';
    	else
    		$link = '<a href="' . get_option('siteurl') . '/wp-login.php?action=logout">' . __('Logout') . '</a>';
    
    	echo apply_filters('loginout', $link);
    }
    

    Is it possible to change the text login en logout with an image? I’ve tried including an image with the image tag but that results in errors. Is it even possible to to this?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change login text with an image’ is closed to new replies.