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; ?>

</ul>

[/sourcecode]

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.

      Reply

Leave a Reply

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

Are you Robot? *

I only check blog comments once or twice a week, if you want a quick reply you can post your question on this forum IntoFPV.com... You might get a faster response from me there (multirotor related only).