WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a way for me to add a page to my template directory to customize my login.php page?

I couldn't find much on the subject so I decided to post the question here.

share|improve this question

You can use some actions and filters on wordpress you can use to customize your login page: Here are some i found in the wp-login.php file

action login_head , to output html before the header tag is closed

filter login_headerurl to customize the link where the logo goes

filter login_headertitle to customize the title of the logo

filter login_message to customize the error messages

filter wp_admin_css to edit the css used by the admin

action login_footer to add any htmk in the bodytag is closed

The logo comes from the css rule h1 a

All hooks and actions can be added on your theme functions.php or within a plugin.

share|improve this answer

Create your own page and paste this code in page.php where you want to show login form or check wp-admin/css/color-fress.css go and edit little bit css there

     $url="http://".$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.