Login CSS not working

Ultimate Branding Login screen CSS is not working when quotes are used in the CSS. For example:

@font-face {
font-family: MiloWeb;
src: url('/wp-content/themes/paternoster/css/assets/font/ffmilo/MiloWeb.eot');
}

When the above CSS is aved, and checked in the source code, it gives:

font-family: MiloWeb;
src: url(&#039https://paternoster.forexpro-systeme.de/wp-content/themes/paternoster/css/assets/font/ffmilo/MiloWeb.eot&#039);
}
  • Nithin

    Hello Ocean Diveloper,

    I was able to replicate the issue in my side too. I'm marking this bug as a ticket, and bringing this into the developers attention, so that it would be looked upon asap.

    As mentioned in our chat, as a workaround you could use the 'login_enqueue_scripts' hook to add the CSS in the login screen for now.

    function my_login_custom_css() { ?>
    <style type="text/css">
    @font-face {
    font-family: MiloWeb;
    src: url('/wp-content/themes/paternoster/css/assets/font/ffmilo/MiloWeb.eot');
    src: url('/wp-content/themes/paternoster/css/assets/font/ffmilo/MiloWeb.woff') format("woff");
    }
    </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_custom_css' );

    Thanks for bringing this issue into our attention, sending some points on your way. Have a great day ahead. :slight_smile:

    Best Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.