Forum Support

 
Advanced Search


[1] 2

Offline rfarrell
Free Member
Posts: 156
Posted 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

Offline mikek
Free Member
Posts: 28743 WWW
Posted 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

Offline rfarrell
Free Member
Posts: 156
Posted 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

Offline revol
Free Member
Posts: 2
Posted 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

Offline pizzetto
Free Member
Posts: 6
Posted on: March 26, 2012, 05: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

Offline jonahh
Free Member
Posts: 23789 WWW
Posted on: March 26, 2012, 12:09:03 PM

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

Offline pizzetto
Free Member
Posts: 6
Posted on: March 27, 2012, 05: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

Offline kako
Free Member
Posts: 1
Posted on: April 03, 2012, 01:03:36 PM

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

Offline revol
Free Member
Posts: 2
Posted on: April 03, 2012, 01: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, 02:01:13 PM by revol »
Logged

Offline omaichotnh
Free Member
Posts: 3
Posted on: September 26, 2012, 01:44:10 AM

i want disable google font on my site! please help!
because load is very slow! hic hic
http://canhosaigonpearl.vn and http://saigonpearl.org

Quote
            wp_register_style('gMako', 'http://fonts.googleapis.com/css?family=Mako');
            wp_enqueue_style( 'gMako');
           
            wp_register_style('gCrimson', 'http://fonts.googleapis.com/css?family=Crimson+Text:regular,regularitalic,600,600italic,bold,bolditalic');
            wp_enqueue_style( 'gCrimson');
           
            wp_register_style('gDroid', 'http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold');
            wp_enqueue_style( 'gDroid');

            wp_register_style('gPlay', 'http://fonts.googleapis.com/css?family=Play');
            wp_enqueue_style( 'gPlay');

            wp_register_style('gTerminalDosis', 'http://fonts.googleapis.com/css?family=Terminal+Dosis+Light');
            wp_enqueue_style( 'gTerminalDosis');

            wp_register_style('gPacifico', 'http://fonts.googleapis.com/css?family=Pacifico');
            wp_enqueue_style( 'gPacifico');

            wp_register_style('gCrushed', 'http://fonts.googleapis.com/css?family=Crushed');
            wp_enqueue_style( 'gCrushed');

            wp_register_style('gPuritan', 'http://fonts.googleapis.com/css?family=Puritan');
            wp_enqueue_style( 'gPuritan');

            wp_register_style('gYanone', 'http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz');
            wp_enqueue_style( 'gYanone');

            wp_register_style('gOswald', 'http://fonts.googleapis.com/css?family=Oswald');
            wp_enqueue_style( 'gOswald');

            wp_register_style('gAnonymousPro', 'http://fonts.googleapis.com/css?family=Anonymous+Pro');
            wp_enqueue_style( 'gAnonymousPro');

            wp_register_style('gVollkorn', 'http://fonts.googleapis.com/css?family=Vollkorn');
            wp_enqueue_style( 'gVollkorn');

            wp_register_style('gNoblie', 'http://fonts.googleapis.com/css?family=Nobile');
            wp_enqueue_style( 'gNoblie');

            wp_register_style('gMolengo', 'http://fonts.googleapis.com/css?family=Molengo');
            wp_enqueue_style( 'gMolengo');

            wp_register_style('gAllerta', 'http://fonts.googleapis.com/css?family=Allerta');
            wp_enqueue_style( 'gAllerta');

            wp_register_style('gMetrophobic', 'http://fonts.googleapis.com/css?family=Metrophobic');
            wp_enqueue_style( 'gMetrophobic');


            wp_register_style('gFrancoisOne', 'https://saigonpearl.org /css?family=Francois+One');
            wp_enqueue_style( 'gFrancoisOne');

            wp_register_style('gRokkitt', 'https://canhonewcity.com /css?family=Rokkitt');
            wp_enqueue_style( 'gRokkitt');

            wp_register_style('gDidactGothic', 'https://thuthiemriverpark.com  /css?family=Didact+Gothic');
            wp_enqueue_style( 'gDidactGothic');

            wp_register_style('gNewsNewsCyrcle', 'https://vietnamliving.com.vn  /css?family=News+Cycle');
            wp_enqueue_style( 'gNewsNewsCyrcle');

            wp_register_style('gSpecialElite', 'https://canhobinhanpearl.vn /css?family=Special+Elite');
            wp_enqueue_style( 'gSpecialElite');

            wp_register_style('gKreon', 'https://capepearl.net /css?family=Kreon');
            wp_enqueue_style( 'gKreon');

            wp_register_style('gOrbitron', 'https://duancanho.vn /css?family=Orbitron');
            wp_enqueue_style( 'gOrbitron');

            wp_register_style('gRadley', 'https://masterithaodienvietnam.com /css?family=Radley');
            wp_enqueue_style( 'gRadley');

            wp_register_style('gBentham', 'https://canhosunwahpearl.vn /fonts.googleapis.com/css?family=Bentham');
            wp_enqueue_style( 'gBentham');

            wp_register_style('gJosefinSans', 'https://house.com.vn /css?family=Josefin+Sans');
            wp_enqueue_style( 'gJosefinSans');

        }
 
add_action('wp_head', 'load_fonts');
« Last Edit: November 15, 2017, 06:59:38 PM by omaichotnh »
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: September 26, 2012, 06:29:06 AM

i want disable google font on my site! please help!
because load is very slow! hic hic
http://canhosaigonpearl.vn

Your site is not using a Vertex-based theme.  Also: do not post the same thing in multiple places.  I have already replied to your post in the WP general area with a suggested fix.
Logged

Offline pizzetto
Free Member
Posts: 6
Posted on: January 11, 2013, 04:38:26 AM

As described above also applies to vertex version 2?

Thanks
Logged

Offline mnorouzi
Free Member
Posts: 1
Posted on: June 25, 2013, 02:42:10 AM

Can I add Persian font in vertex by @font face?
if yes, Where I should add the css code?
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: June 25, 2013, 07:13:20 AM

Hello,

Vertex supports only google fonts. You would need to find a google font that supports your language.
Logged

Offline amin1136
Free Member
Posts: 5
Posted on: November 05, 2015, 01:19:50 PM

Hi,
I read all the messages but it does not work for me.
Sometimes the "fonts.googleapis.com" shows up in page and my website becomes blank and nothing comes up!!!!
I have used Joomla 2.5. How can I fix this problem???

Please help me...
Logged
[1] 2

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.041 seconds with 21 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
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.