Login/Out Images instead of tekst
-
Hello,
I found a code to ad images / icons instead of plain text to login / out but it won’t work.
get some mismatch at the top of page.Am I using the wrong code in the functions.php ?
-
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar();
?>
//Image instead of text for the “Login & Log Out” links
function ax_login() {
$before = ‘<li class=”axLinks”>’;
$after = ”;
$theme_url = get_bloginfo(‘template_url’);
if ( ! is_user_logged_in() )
$link = $before . ‘‘ . ‘<img src=”‘ . $theme_url . ‘/images/login.png” alt=”Log in” />’ . ‘‘ . $after;
else
$link = $before . ‘‘ . ‘<img src=”‘ . $theme_url . ‘/images/logout.png” alt=”Log Out” />’ . ‘‘ . $after;
echo apply_filters(‘loginout’, $link);
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Login/Out Images instead of tekst’ is closed to new replies.