Custom wordpress login

Make a custom login

copy the following piece of code, and paste it on your functions.php file

Of course your image will replace the original one so there is a size to respect. Your picture must have the following size: 333×85

//custom login

function my_custom_login_logo() {
    echo '<style type="text/css">
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; }

add_action('login_head', 'my_custom_login_logo');

//Custom Login Screen
function change_wp_login_url() {
echo bloginfo(‘url’);

function change_wp_login_title() {
echo get_option(‘blogname’);

add_filter(‘login_headerurl’, ‘change_wp_login_url’);
add_filter(‘login_headertitle’, ‘change_wp_login_title’);

//Change link from new WP login logo (default is
function put_my_url(){
return ""; // your URL here
add_filter(‘login_headerurl’, ‘put_my_url’);


Geef een antwoord

Het e-mailadres wordt niet gepubliceerd.