BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Change fonts on login page
- This topic has 6 replies, 3 contibutors, and was last updated 8 years, 8 months ago by Anonymous.
Question
March 9, 2016 at 4:44 am #62194@jiaochunleiHi, 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
March 9, 2016 at 6:00 am #62200@
AnonymousHi @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.phpfunction 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
March 9, 2016 at 7:32 am #62214@jiaochunleiHi, 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.
March 9, 2016 at 1:14 pm #62245@jiaochunleiHi, 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.
March 11, 2016 at 3:38 pm #62612@
AnonymousHi @jiaochunlei, Please attach a screenshot of it so it will help us to provide code according to that.
REgards
March 14, 2016 at 6:54 am #62912@jiaochunleihere 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”>March 17, 2016 at 1:25 am #63510@
AnonymousHi @jiaochunlei
You can add following code inside child theme functions.phpLogin 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
- The question ‘Change fonts on login page’ is closed to new replies.