The wp_loginlogout
function outputs the <a href
tag itself, so what you’re putting in is going to be messy…
You could try <span class="foooterLink"><?php wp_loginlogout(); ?></span>
Or take a look in wp-includes/template-functions-general.php
and adapt the wp_loginlogout()
function to suit your needs. I added a class to mine so as to integrate it with Matt’s Intelligent Menu.
Don’t hold me to this as my eyes are almost shut, but I would not add any class and just put the link in your footer but it is hard to say without visualizing
a href=”http://your domain/blog/wp-login.php?action=logout”>Logout
apply correct link tags
<?php wp_loginout(); ?> will displacy “login/logout” status
<?php _e(‘login area’); ?> will display “login area”
With your code: It will show “login login area”.
Am I correct?
So, if you want to change the default “login/logout” letter, you will need to hack (edit) to file called “template-functions-general.php” in your wp-included folder and do following:
1 – search for: function wp_loginout()
2- underneat it, you will see something like:
get_settings(‘siteurl’) . ‘/wp-login.php”>’ . __(‘login‘) .
3- change the LETTER “login” to something else you like
4- do the same thing with “logout” as well if you want.
5- check you page and see.
6- good luck !
I did this even using an image to display “login/lout” fuction. Check my site http://unkool.com and you will see the TOP right coner.
Thread Starter
jinsan
(@jinsan)
nden – unfortunately for a theme that’s going to be difficult as if I am distributing it then I’m asking users to modify their own core templates – bad idea for me at least.
I’ll try the other suggestions, thanks guys.
Thread Starter
jinsan
(@jinsan)
Well I tried the first method and it highlighted the “>. I think this is quite a ludicrous thing, it should be simple to add or remove this…it’s a bleeding headache. Will try some other examples….
I use an image link for my login “button” like this:
<a href="http://www.website.com/wp-login.php?action=login"><img src="picture.jpg"/></a>
I don’t have a ‘register’ link, so no one but me needs a ‘login’ link, and I did not want it displayed on the page if it wasn’t needed…