login_head action hook is not placing code in section
-
Hi all,
I am using the following code to place my own stylesheet in the head section of the wp-login.php page. However, the HTML is outputted before the closing body tag and not the closing head tag.Any ideas?
My functions.php
function login_css() { wp_enqueue_style( 'login_css', get_template_directory_uri() . '/css/login.css' ); } add_action('login_head', 'login_css');
The outout:
<p id="backtoblog"><a href="https://localhost/project_tracker/" title="Are you lost?">← Back to Project Tracker</a></p> </div> <link rel='stylesheet' id='login_css-css' href='https://localhost/project_tracker/wp-content/themes/project-tracker/css/login.css' type='text/css' media='all' /> <div class="clear"></div> </body> </html>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘login_head action hook is not placing code in section’ is closed to new replies.