Scheduled Maintenance - On Friday the 25th at 10PM EST we will be making some minor DNS changes to our server. We do not expect there to be any down time on our site, but if after this time our site does not load for you please simply clear your browser cache and restart your machine. - Thank you.
login
Join Now Access Products


Forum Support
Ask questions and find answers about products

Pages: [1]
Print
Author Topic: Turn off Google Fonts in Vertex  (Read 3660 times)
rfarrell
Offline Offline

Posts: 144



« on: January 13, 2012, 01:49:24 AM »

I have found that using Google fonts can slow a websites loading time dramatically.  Please add a parameter in vertex based templates to allow Google Fonts to be turned off and if turned off stop the template from calling up http://fonts.googleapis.com/css?family=<?php echo $s5_fonts_high;
Logged
mikek
Shape 5 Administrator
Offline Offline

Posts: 16404



WWW
« Reply #1 on: January 13, 2012, 09:05:30 AM »

Hello,

If you set the font to Arial or Helvetica it will not call google fonts.
Logged

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


- Using Firebug will save you so much time, frustration and forum questions:
http://getfirebug.com/


- Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free:
http://www.shape5.com/hire_a_coder/listauctions
rfarrell
Offline Offline

Posts: 144



« Reply #2 on: January 20, 2012, 05:15:14 PM »

That wasn't the case in the compassion template.  It calls up font.googleapis.com before it checks which fonts are to be used and the site doesn't fully load until it gets a response which can be very slow.  I've commented out this line and the speed difference is remarkable.
Logged
revol
Offline Offline

Posts: 2



« Reply #3 on: February 24, 2012, 01:13:25 PM »

Hi there,
its a logic problem in the code

on index.php line 35 you have
Code:
<?php if(($s5_fonts_highlight != "Arial") || ($s5_fonts_highlight != "Helvetica")|| ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $s5_fonts_highlight ?>" />
<?php ?>

it has to be
Code:
<?php if (($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $s5_fonts_highlight ?>" />
<?php ?>

same on vertex\css_and_js.php line 27 for $s5_fonts

have a nice day
and thanks for this great template btw
« Last Edit: February 24, 2012, 01:24:14 PM by revol » Logged
pizzetto
Offline Offline

Posts: 2



« Reply #4 on: March 26, 2012, 06:31:45 AM »

Hi I read the previous post, I followed the post by Revol, but loading the site continues to seek googleapis.com

What to do?
thanks
Logged
jonahh
Shape 5 Administrator
Offline Offline

Posts: 15650



WWW
« Reply #5 on: March 26, 2012, 01:09:03 PM »

Please post in the template board you have having issues with and we can help you from there
Logged

Jonah
------------
Shape 5 Team


- Using Firebug will save you so much time, frustration and forum questions:
http://getfirebug.com/


- Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free:
http://www.shape5.com/hire_a_coder/listauctions
pizzetto
Offline Offline

Posts: 2



« Reply #6 on: March 27, 2012, 06:19:18 AM »

Resolved, Revol's post is correct. In my site there is a module that calls googleapis
This confused me, correct the module ok  Grin

Thanks for your attention
Logged
kako
Offline Offline

Posts: 1



« Reply #7 on: April 03, 2012, 02:03:36 PM »

and how we can add Tahoma Font ? and if we \Turn Off and add Tahoma font ?
Logged
revol
Offline Offline

Posts: 2



« Reply #8 on: April 03, 2012, 02:55:45 PM »

and how we can add Tahoma Font ? and if we \Turn Off and add Tahoma font ?

you can delete/comment out the lines or replace with this
Code:
<?php if (($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif") && ($s5_fonts_highlight != "Tahoma")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $s5_fonts_highlight ?>" />
<?php ?>

dont forget the $s5_fonts ...
« Last Edit: April 03, 2012, 03:01:13 PM by revol » Logged
Pages: [1]
Print

Jump to:  


Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Page created in 0.033 seconds with 22 queries.