BuddyBoss Home – Web Support Forums Themes Boss. theme Change fonts on login page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Question

    #62194
    @jiaochunlei

    Hi, my login page loads very slow. I found it is because the google fonts. How can change the fonts there?

    I set standard fonts Arial, Helvetica, sans-serif for the boss theme. But I found nowhere I can set the fonts for the login page. Is there a simple way to define the fonts for login page?

    thanks

    Answers

    #62200

    Anonymous
    @

    Hi @jiaochunlei,

    You can use the following codes to set you admin login page font
    just need to replace the font family parameter with the same family which you want to use
    You can add these codes to child theme functions.php

    
    function my_login_logo() { ?>
        <style type="text/css">
            .login h1 a {
                font-family: 'Palatino Linotype' !important;
            }
        </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_logo' );
    

    Regards

    #62214
    @jiaochunlei

    Hi, thanks for your quick reply. It seems it is not the login h1 calls the google fonts, I tried the code and it still loads google fonts on my wp-login.php page.

    #62245
    @jiaochunlei

    Hi, I found my wp-login.php loads tow time google fonts. I use the Remove Google Fonts From Core plugin and removed the first one. the other one come from the theme-functions.php, how can I get rid of it there? I donot use google fonts, standard fonts is ok for me.

    #62612

    Anonymous
    @

    Hi @jiaochunlei, Please attach a screenshot of it so it will help us to provide code according to that.

    REgards

    #62912
    @jiaochunlei

    here is the source code of my login.php page, I set font Arial on the back end , but here still loads google fonts, and also the font Arial is not available with google

    </script><link href=”//fonts.googleapis.com/css?family=Arial%2C+Helvetica%2C+sans-serif:400″ rel=”stylesheet” type=”text/css”>
    <style type=”text/css”>

    #63510

    Anonymous
    @

    Hi @jiaochunlei
    You can add following code inside child theme functions.php

    Login page css not not be changed from custom css.

    
    function my_login_logo() { ?>
        <style type="text/css">
            #login,.login h1 a {
                font-family: Arial, Helvetica, sans-serif;
            }
        
        </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_logo' );
    

    Regards

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘Change fonts on login page’ is closed to new replies.