Put Login/Logout/Register links wherever you want

This is the code to generate the login/logout/register hyperlink.

You can put it wherever you want on your page.

[sourcecode language=”php”]

<ul class=”login”>

<li><?php wp_loginout(); ?></li>

<?php if ( ! is_user_logged_in() ): ?>
<li><?php wp_register(“”, “”); ?></li>
<?php endif; ?>



You then modify the style.css, setup attributes for class “login” to achieve the effect you want.

As an example, please see buttons on my site top right corner. I put them in the header file.

2 thoughts on “Put Login/Logout/Register links wherever you want

    1. Jamaal

      Hello there, You’ve done an excellent job.
      I’ll definitely digg it and personally suggest to my friends.

      I am confident they’ll be benefited from this site.


Leave a Reply

Your email address will not be published. Required fields are marked *

For prompt technical support, please use our forum IntoFPV.com. I check blog comments weekly.