Forum Support

Shape 5
March 28, 2024, 08:36:09 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] 2
  Print  
Author Topic: Turn off Google Fonts in Vertex  (Read 75809 times)
rfarrell
Jr. Member
**
Offline Offline

Posts: 156



« 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
Administrator
*****
Offline Offline

Posts: 28743



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 Knott
------------
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
rfarrell
Jr. Member
**
Offline Offline

Posts: 156



« 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
Jr. Member
**
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
Jr. Member
**
Offline Offline

Posts: 6



« Reply #4 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
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #5 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

Jonah Hall
------------
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
pizzetto
Jr. Member
**
Offline Offline

Posts: 6



« Reply #6 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
kako
Jr. Member
**
Offline Offline

Posts: 1



« Reply #7 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
revol
Jr. Member
**
Offline Offline

Posts: 2



« Reply #8 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
omaichotnh
Jr. Member
**
Offline Offline

Posts: 3



« Reply #9 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
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #10 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

Tristan Rineer
------------
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
pizzetto
Jr. Member
**
Offline Offline

Posts: 6



« Reply #11 on: January 11, 2013, 04:38:26 AM »

As described above also applies to vertex version 2?

Thanks
Logged
mnorouzi
Jr. Member
**
Offline Offline

Posts: 1



« Reply #12 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #13 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

Mike Knott
------------
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
amin1136
Jr. Member
**
Offline Offline

Posts: 5



« Reply #14 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
Pages: [1] 2
  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.