Shape 5

Joomla Templates => Incline - Club => : lauredess July 28, 2015, 03:03:33 AM



: Optimize the call to google fonts
: lauredess July 28, 2015, 03:03:33 AM
Hi,

My website is online :) and I realized several actions to optimize both for users and Google.

To control and optimize my site, I use two tools:
- Google Page Speed
- Dareboost

One last action is highly recommended to me by these two tools: the optimization of the call to google fonts (see attached).

If I want to do this optimization, where do I do it and is it going to change my settings located in the Template Manager?

Thanks in advance for your reply :)
Laure


: Re: Optimize the call to google fonts
: mikenicoll July 28, 2015, 11:10:04 PM
Hello,

We call Google Fonts in the index.php with the default code provided by Google. You would need to edit this block of code to your needs.
:
<?php if(($s5_fonts_highlight1 != "Arial") && ($s5_fonts_highlight1 != "Helvetica") && ($s5_fonts_highlight1 != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=<?php echo str_replace(" ","%20",$s5_fonts_highlight1); if ($s5_fonts_highlight1_style != "") { echo ":".$s5_fonts_highlight1_style; } ?>" />
<?php ?>