Custom Login Screen Errors from functions.php
-
Hi Everyone,
I’m working on customizing my Login Page, and I’m having a little problem. The page works and looks good, but there are all these WordPress errors.
I’m working with this wordpress codex page. First I wanted to change the WordPress logo to my logo. I copy and pasted this code exactly into my functions.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/site-login-logo.png);
padding-bottom: 30px;
}
</style>
<?php }
add_action( ‘login_enqueue_scripts’, ‘my_login_logo’ );`I got an error that said: “Parse error: syntax error, unexpected ‘}’ in /home/content/57/8071057/html/wp-content/themes/WDIFTLOM/functions.php on line 35”
So I removed the ‘}’ on that line, and the page came up, properly syled with my logo, but a new error: “function my_login_logo() { ?>
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘my_login_logo’ was given in /home/content/57/8071057/html/wp-includes/plugin.php on line 403″ And on every page of my site you see this up top:function my_login_logo() { ?>
Any idea why this is happening? My page is at:https://wedoitfortheloveofmusic.com/wp-login.php and here is my entire functions.php code: https://pastie.org/4811423
- The topic ‘Custom Login Screen Errors from functions.php’ is closed to new replies.