Archived topic
Use Any Google Font?
8 replies · Started by Ian on August 21, 2020
I was under the impression that I could choose any Google font and GP will output this. I just tried to choose this in the Primany Nav but Customizer won't recognize it.
https://fonts.google.com/specimen/Freckle+Face#standard-styles
Am I missing something?
I should clarify, I have added this code:
add_filter( 'generate_number_of_fonts','tu_show_all_available_google_fonts' );
function tu_show_all_available_google_fonts() {
return 'all';
}
But when I choose say Freckle Face, the Primary Nav font does not update. Is there a switch I need to enable?
Hi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know :)
Sorry Leo. My bad. I was running a custom header! Figured it out.
No problem :)
Hey Support.
I'm having a similar issue.
I've created a child theme.
I can see the Google Font code when I inspect the page. For example...
<link rel="stylesheet" id="generate-fonts-css" href="//fonts.googleapis.com/css?family=Open+Sans:regular,italic,600,600italic,700,700italic|Lato:100,100italic,300,300italic,italic,700italic,900,900italic" type="text/css" media="all">
But the font doesn't display. Here is a test page...
https://staging.manlygoldeneagles.com.au/Styles/
Any help would be appreciated.
Hi there,
remove this from your Child Theme style sheet:
@import url("../generatepress/style.css");
Its not required and is in turn requesting the Themes styles sheet again, after the inline styles are loaded.
Perfect. Thanks David!
You're welcome