Removing Calls to Fonts I'm Not Using

Posted in: Newspaper
Post count: 40

I’m considering removing calls to fonts I’m not using. In Theme Panel, I’ve narrowed down my fonts to just arimo and roboto.

In functions.php, I’ve changed line 43 (collection URL) to:

wp_enqueue_style('google-font-rest', $td_protocol . '://fonts.googleapis.com/css?family=Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text

But, the theme is still calling all 5 fonts that come pre-packaged. Is there any way to remove calls to fonts I’m not using?

Thanks!

Post count: 3343

Hi,
Check here: http://screencast.com/t/6VBAFoUXy

Thanks!

Post count: 40

Hello Marius and fellow Newspaperers,

So, I deleted everything from line 43-48:
else } – the 5 lines below that.

The good news is that the correct fonts are now loading, and the page load time is significantly reduced. (shaved off over a second: 3.1s from 4.3s).

http://www.screencast.com/t/uWKPyfEoV0r

Thanks,
Chris

  • This reply was modified 12 years by Fudoki.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.