WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Simple Facebook Connect] Customizing the Login Page (2 posts)

  1. johngalt80
    Member
    Posted 4 years ago #

    I've added this plugin and it is working. Thanks!

    When I click on a login link, say to post a Comment, it takes me to the wp-login.php page. Is there a plugin that'll play nice with your plugin or some way to customize this page so that it looks more like my site rather than the WP login page?

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Bane Unreinen
    Member
    Posted 4 years ago #

    While there are a few plugins that will do that, you can actually just insert the code below into your theme functions.php file:

    /* BEGIN custom login & register screen */
    function my_custom_login_logo() {
    echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo-login.png) !important; }
    </style>';
    }
    add_action('login_head', 'my_custom_login_logo');
    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');
    /* END custom login & register screen */

    This will let you replace the default WP logo and link. I moved away from a plugin to this method months ago; live example with the SFC plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic