could someone tell me how i can change the log in page
hell everyone, i would like to customise the login and regester page of my worpress 2.0 blog, is this possible to have graphics here instead of the white page??
and also, how can i divert my members to go directly to the blog after they login, instead of the dashboard, so i would like for my members to login and then goto blog page and not dashboard?
i hope someone couls help me out with both these issues for me.. thankyou for reading my post
Edit wp-login.php and wp-register.php.
In one file you’ll have to modify the html twice (basically there’s two html pages in one). In the other, thrice.
You may want to modify the call to css to reflect your theme’s css rather than the admin’s css.
As for redirecting, in wp-login.php, around line 170, find:
if ( !isset( $_REQUEST['redirect_to'] ) )
$redirect_to = 'wp-admin/';
Replace wp-admin with your root folder, and you’re away laughing.
ok thankyou., ive done the diverting bit to homepage and not dashboard, thanks for that 😉
but could you ecplain the changing or login page and registration pages with some graphics a little better for me please, im new at all this lol
thankyou for your help
Search the forum. Search the codex. Fiddle. Look at wp-login.php and wp-register.php. Try to see what’s going on.
I’m NOT going to cook it for you, then chew it and pre-digest it…
ok, so i need to learn the php code first, any tips as to where to start on learning this?
No, in fact, you do not need to learn php. You need to open the file and look for the HTML in it. It really is NOT difficult.
From what I gather, if you want to change/edit/modify the imagery on the login page itself, you’d find where and what to edit in the wp-admin/wp-admin.css file.. (Example: font colors, image path’s, whatever else..)
I *think* this is the right file to edit.. could be wrong though..
Hey spencer, yeah, if you just want to mess with the css, that’s the file, but if you want to really make the page fit in with the rest of the site, you’ll have to modify the html as well, and that’s done through wp-register.php and wp-login.php.
I guess it comes down to how much customisation one wants to do 🙂
ok, i will look into it and have a play around lol, of course i back everything up before hand, as my html knowledge is not brilliant, i know the very basics, so i hope its enough 😉
thankyou once again for your help guys, muchly gratefull 😀
oh i just looked for wp-admin/wp-admin.css and there is not one there, i only have admin.php in this dir ?? any ideals
There should be 2 folders, and 60 files, including wp-admin.css in the /wp-admin folder in a standard install.
If you don’t have wp-admin.css in that folder, either you didn’t see it, or your install isn’t complete. If it was missing, you wouldn’t be seeing a nice dashboard or login page…
this is great info guys, i’m going to update my page as well.
But what if you want to have the text box for their username and password to be right on the front page of your blog instead of being redirected to a log in page?
any tips would be great! here is my site, its still a work in progress 🙂 http://www.liverpuncher.com
The search is your best friend 🙂
and from the very first result:
thanx guys, i found the file needed and added a small image to the login page 😀 im going to play around with it somemore to see if i can make more changes, its a great start..
ive installed easy php so i can test it all on there and not on my webserver incase i completly screw things up (very possible lol)
also about the login on the main blog page would be awsem, is this possible to have on the side bar? im using connections theme?
hi guys…i pasted the code to create a text box to log in from the side bar, and it works well except for two things:
try logging on to my site:
1. when you log in for the first time, it does not show the user name, and seems like you are not logged in, only after you navigate to another page does it show the log in name….
2. How do i get rid of the bullet point “Login” on top of the log in box?
here is the code i pasted in the side bar, it works great except for the two issues i mentioned…
global $user_ID, $user_identity;
<h2><?php _e('Login'); ?></h2>
<form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
<div><label><?php _e('Login') ?>:<input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label>
<label><?php _e('Password') ?>: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label>
<input type="hidden" name="rememberme" value="forever" />
<input type="submit" name="submit" value="<?php _e('Login'); ?> »" tabindex="9" />
<?php wp_register('', ''); ?>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
<h2><?php echo $user_identity; ?></h2>
<?php wp_register(); ?>
<li><a>"><?php _e('Logout'); ?></a></li>
- The topic ‘could someone tell me how i can change the log in page’ is closed to new replies.