Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166018

    I’d like to use some custom styling for the login page /wp-admin. I’ve some styling in style.css in the child theme, but that seems not be loading on the login page. Instead the stylesheet of the Enfold parent theme is loaded:

    <link id="login_wouter-css" media="all" type="text/css" href="BETASITE/wp-content/themes/enfold/style.css?ver=3.6.1" rel="stylesheet"></link>

    Any suggestions?

    #166368

    Hello wvanderzee!

    Add this on your child theme’s function.php:

    
    function avia_login_stylesheet() { ?>
    	<?php $urlcss = get_stylesheet_directory_uri(); ?>
        <link rel="stylesheet" id="avia_wp_admin_css"  href="<?php echo $urlcss.'/style.css'; ?>" type="text/css" media="all" />
    <?php }
    add_action( 'login_enqueue_scripts', 'avia_login_stylesheet' );

    Cheers!
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Styling login window’ is closed to new replies.