Shape 5

General Category => Suggestions => : rfarrell January 13, 2012, 01:49:24 AM



: Turn off Google Fonts in Vertex
: rfarrell 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;


: Re: Turn off Google Fonts in Vertex
: mikek January 13, 2012, 09:05:30 AM
Hello,

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


: Re: Turn off Google Fonts in Vertex
: rfarrell 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.


: Re: Turn off Google Fonts in Vertex
: revol February 24, 2012, 01:13:25 PM
Hi there,
its a logic problem in the code

on index.php line 35 you have
:
<?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
:
<?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


: Re: Turn off Google Fonts in Vertex
: pizzetto 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


: Re: Turn off Google Fonts in Vertex
: jonahh 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


: Re: Turn off Google Fonts in Vertex
: pizzetto 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  ;D

Thanks for your attention


: Re: Turn off Google Fonts in Vertex
: kako April 03, 2012, 01:03:36 PM
and how we can add Tahoma Font ? and if we \Turn Off and add Tahoma font ?


: Re: Turn off Google Fonts in Vertex
: revol 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
:
<?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 ...


: Re: Turn off Google Fonts in Vertex
: omaichotnh 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

            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');


: Re: Turn off Google Fonts in Vertex
: Tristan Rineer 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.


: Re: Turn off Google Fonts in Vertex
: pizzetto January 11, 2013, 04:38:26 AM
As described above also applies to vertex version 2?

Thanks


: Re: Turn off Google Fonts in Vertex
: mnorouzi 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?


: Re: Turn off Google Fonts in Vertex
: mikek 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.


: Re: Turn off Google Fonts in Vertex
: amin1136 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...


: Re: Turn off Google Fonts in Vertex
: jonahh November 05, 2015, 01:25:00 PM
Hello,

Please post a URL where this occurs. 

Thanks,


: Re: Turn off Google Fonts in Vertex
: amin1136 November 05, 2015, 01:38:19 PM
Hello,

Please post a URL where this occurs.  

Thanks,
My website URL is:
Sigmagroup.ir
Thank you for responding


: Re: Turn off Google Fonts in Vertex
: amin1136 November 05, 2015, 02:20:09 PM
Hello,

Please post a URL where this occurs. 

Thanks,

My website URL is:
Sigmagroup.ir
Thank you for responding


: Re: Turn off Google Fonts in Vertex
: mikek November 06, 2015, 12:56:39 PM
Hello,

Your website is not using a Shape5 template, it is using a template called "jf_social", you would need to contact is developer regarding this.


: Re: Turn off Google Fonts in Vertex
: amin1136 November 06, 2015, 02:58:33 PM
Hello,

Your website is not using a Shape5 template, it is using a template called "jf_social", you would need to contact is developer regarding this.

How can I find the developer???


: Re: Turn off Google Fonts in Vertex
: amin1136 November 06, 2015, 02:59:31 PM
Hello,

Your website is not using a Shape5 template, it is using a template called "jf_social", you would need to contact is developer regarding this.

How can I find the developer??


: Re: Turn off Google Fonts in Vertex
: mikek November 07, 2015, 08:48:47 AM
Hello,

I don't know who made your template, the details should be in the backend of the template.