WordPress.org

Ready to get started?Download WordPress

Forums

Editing WP-Login Page (1 post)

  1. slshaw115
    Member
    Posted 1 year ago #

    I am trying to edit the WP-Login page to display my customer's logo and have it link back to her site if you click the logo. I am using this page as a reference and am copying and pasting the code into the functions.php file in the editor and making the necessary changes to display the image. I am using a third-party theme called Sky from Elegant themes. The change is working but when I update the file it takes me to a blank white screen. I can still get into wp-admin but every time I edit a file in the editor and then update it I am sent to a blank screen. Not sure why this is happening.

    Here's the code I've inserted:

    <?php function my_login_logo() { ?>
        <style type="text/css">
            body.login div#login h1 a {
                background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/images/logo2.png);
                padding-bottom: 30px;
            }
        </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_logo' );
    
    ?>

    Cheers,

    Stephen

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags