Forum Support

Shape 5
September 28, 2021, 02:55:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Optimize the call to google fonts  (Read 234 times)
lauredess
Jr. Member
**
Offline Offline

Posts: 54



« on: July 28, 2015, 03:03:33 AM »

Hi,

My website is online Smiley 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 Smiley
Laure
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: 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.
Code:
<?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 ?>
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.