Tagged: google fonts
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
March 13, 2014 at 2:45 pm #236938
I followed the instructions from this topic https://kriesi.at/support/topic/new-custom-font/ and have the font showing up in the list in Enfold settings, however I do not see the different weight choices. How can I select those? Below is what I added as a test.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800'; return $fonts; }
March 15, 2014 at 5:53 am #237929Hi!
You’ll need to set that via CSS (Quick CSS), something like:
body{ font-family:'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight:800; }
Best regards,
JosueSeptember 5, 2014 at 8:39 am #313852I tried following the steps above but it doesn’t work on the latest enfold theme. I already put this code in my functions.php:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Coustard'] = 'Coustard:400,900'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Coustard'] = 'Coustard:400,900'; return $fonts; }
And added this to custom CSS:
font-weight: 900;
but it doesn’t work. In fact when I do “view page source,” I still get this:
<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=Coustard|Droid+Sans' type='text/css' media='all'/> <link rel='stylesheet' id='open-sans-css' href='//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=3.9.2' type='text/css' media='all' />
How do I fix this?
September 5, 2014 at 8:43 am #313854Hi!
Did you select the font (Coustard) in the Theme Options either as the heading or content font?
Regards,
Josue -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.