Doing a refresh of our website and having issues with Google Fonts not displaying on front end. the Different standard fonts are working OK but no the Google fonts - it doesn't seem to matter which one I select, they all render up the same. Am I missing something here?
I'd like to change to a combination of 'Roboto Condensed' and 'Cabin' fonts.
... Open Sans fonts work fine, but not Eczar or Roboto Condensed (nor any other Google webfonts fonts that I tried from the dropdown list in typography). All end up looking the same, like some kind of default (see the body text on https://surfmud.com/)
Thanks for that, it is not really a solution to my issue though.
I'm just looking to use 'Google Fonts' that are already showing in the Typography options within Salient - not adding any new custom fonts.
The issue is that they are not rendering in the front end after being selected. When I added the enqueing code for 'Open Sans' into functions.php - that one worked ... but not any others.
I'd like to use Roboto Condensed for headings and navigation, and Cabin for paragraph text. Happy to give you our admin logins if you could take a quick look?
Thats what I thought originally (Google Fonts should just work straight out-of-the-box) - but none of the Google Fonts where rendering correctly. I then started looking for other solutions.
I have removed all snippets. Still the Google fonts aren't rendering (see navigation menu ... selected as Roboto Condensed in typography: https://surfmud.com/
I purchased the support time extension to resolve this issue - Happy to give you our admin logins if you could take a quick look?
Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.
The problem is that is not the Roboto Condensed font - which is a sans serif font ... selecting any font from the Google Fonts list just returns that same font.
I just changed the font at H4 to 'Cabin' .... and it looks exactly the same as in your example.
Doing a refresh of our website and having issues with Google Fonts not displaying on front end. the Different standard fonts are working OK but no the Google fonts - it doesn't seem to matter which one I select, they all render up the same. Am I missing something here?
I'd like to change to a combination of 'Roboto Condensed' and 'Cabin' fonts.
Jason
Hey there,
Thanks for reaching in,
Please enter this snippet into your functions.php file
You can replace the fonts with the ones you want to render.
Hope this helps,
Regards
So I added this snippet...
function wpb_add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'http://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700', false );
}
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );
...to the bottom of the functions.php file: (see attached)
Have selected Roboto Condensed bold 700 as the navigation font, but nothing changes. Menu does not change.
Ideas as to why, or how to fix?
Actually this is quiet weird.
So I have tried entering this into the functions.php in my Salient child theme:
function wpb_add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'http://fonts.googleapis.com/css?
family=Eczar:600,400,700', false );
wp_enqueue_style( 'wpb-google-fonts', 'http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300', false );
wp_enqueue_style( 'wpb-google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300', false );
}
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );
... Open Sans fonts work fine, but not Eczar or Roboto Condensed (nor any other Google webfonts fonts that I tried from the dropdown list in typography). All end up looking the same, like some kind of default (see the body text on https://surfmud.com/)
Any idea whats happening?
Cheers,
Jason
Hey Again,
Please have a look at this Article :Add a Custom Font.
Be.st
ThemeNectar Support Team
Hi Tahir,
Thanks for that, it is not really a solution to my issue though.
I'm just looking to use 'Google Fonts' that are already showing in the Typography options within Salient - not adding any new custom fonts.
The issue is that they are not rendering in the front end after being selected. When I added the enqueing code for 'Open Sans' into functions.php - that one worked ... but not any others.
I'd like to use Roboto Condensed for headings and navigation, and Cabin for paragraph text. Happy to give you our admin logins if you could take a quick look?
Cheers,
Jason
Hey Again,
You dont have to add any such code for the Google Fonts to work . Please remove the extra snippet from functions.php .
Be.st
ThemeNectar Support Team
Thats what I thought originally (Google Fonts should just work straight out-of-the-box) - but none of the Google Fonts where rendering correctly. I then started looking for other solutions.
I have removed all snippets. Still the Google fonts aren't rendering (see navigation menu ... selected as Roboto Condensed in typography: https://surfmud.com/
I purchased the support time extension to resolve this issue - Happy to give you our admin logins if you could take a quick look?
Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.
Thanks
ThemeNectar Support Team
Hey Again ,
Just changed this : http://prntscr.com/i289x0 and its working correctly now : http://prntscr.com/i28a4z .
Be.st
ThemeNectar Support Team
Hey Tahir,
The problem is that is not the Roboto Condensed font - which is a sans serif font ... selecting any font from the Google Fonts list just returns that same font.
I just changed the font at H4 to 'Cabin' .... and it looks exactly the same as in your example.
Thanks for assisting with this.
J
Hey Again,
Seems like a server side issue : http://prntscr.com/i2n2gg . Please contact your hosting provider and inquire about this .
Be.st
ThemeNectar Support Team