Site icon Catch Themes

Adding Login/Logout Links to Footer

Hi, I was wondering how I might add the login/logout php script so that it falls in the second footer widget column in line with the rest of the links in that column? I tried stuffing the following script in the footer.php file just to see where it ends up, but no luck. It ends up in its own container or space in the footer. Any ideas? Thanks :P
<?php if (is_user_logged_in()) : ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>">logout | </a>
<?php else : ?> <a href="<?php echo wp_login_url(get_permalink()); ?>">login | </a>
<?php endif;?>
Exit mobile version