Can't choose more weight options for Google Fonts

Posted in: Newspaper
Post count: 1

Hi! I’m trying to change the weight for the font “Roboto Slab” on Google Fonts. I know for a fact that that specific font has 4 different weights to use from – the one I want to use is “Light 300”. The only styles the theme lets you use are “Normal” and “Bold”.

Does anyone know how can I insert those specific weights to Google Fonts inside the Newspaper theme?

Many thanks in advance.

Post count: 1291

Hi,

The theme default fonts are defined in the functions.php – http://screencast.com/t/R4PB5rX10N83
For the custom selected fonts modify the code here – http://screencast.com/t/22e235H0kj

Add the desired weight, in my case i’ve added multiple parameters but you could add only the one you use.

$css_files = "://fonts.googleapis.com/css?family=" . $temp_css_google_files . ':400italic,700italic,400,700';

For 300 use this:

$css_files = "://fonts.googleapis.com/css?family=" . $temp_css_google_files . ':300';

Thank you, Emil G.

  • This reply was modified 11 years by Emil G.
  • This reply was modified 11 years by Emil G.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.