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 don't look at blog comments very often (maybe once or twice a week), so if you have any questions related to multirotor please post it on this forum IntoFPV.com... You're likely to get a response from me faster on there.