Customizing WordPress Login Page without Plugins

There are plugins available that allow you to change WordPress Login pages. If you prefer to build your own plugin or customize the page through your theme, that is a simple task.

The first thing you have to do is to call the login_head action

add_action('login_head', 'custom_login_page');

Write the custom_login_page function

function custom_login_page() {
     echo '<style type="text/css">
         h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/new_login_logo.png) !important; }

The function above simply changes the Logo Image on the page. You can customize the background and position of the Login Box, however you see fit.




I am a passionate PHP user with a love for Open Source systems. With a few years of programming these technologies, I am fortunate to be able to share my thoughts. Joomla and WordPress are my favorite systems to develop. That's enough for now.

You may also like...

Leave a Reply

Your email address will not be published.