Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED] Turn off google fonts completely
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] Turn off google fonts completely

[SOLVED] Turn off google fonts completely 10 years, 10 months ago #15575

Hi
I have found that using Google fonts can slow a websites loading time dramatically. How can i turn off Google fonts in smartaddons templates?
The topic has been locked.

Re: Turn off google fonts completely 10 years, 10 months ago #15597

Dear Iman Rahimi,

A, Please following the steps:

1. go to your_site\templates\sj_template\templateDetails.xml find:
<field name="googleWebFont" type="text" default="your_google_font" label="GOOGLE_WEBFONT_LABEL" description="GOOGLE_WEBFONT_DESC" />

=>

<field name="googleWebFont" type="text" default="" label="GOOGLE_WEBFONT_LABEL" description="GOOGLE_WEBFONT_DESC" />


2. go to Administrator -> Template Manager -> Typography -> Google Font-family -> remove font in text box . then click save.

B, or you can following how:
- go to your_site\templates\sj_template\includes\bottom.php and find:

if ($googleWebFont != "" && $googleWebFont != " " && strtolower($googleWebFont)!="none") {
	$doc->addStyleSheet('http://fonts.googleapis.com/css?family='.str_replace(" ","+",$googleWebFont).'');
	$googleWebFontFamily = strpos($googleWebFont, ':')?substr($googleWebFont, 0, strpos($googleWebFont, ':')):$googleWebFont;
	if(trim($googleWebFontTargets)!="")
		$doc->addStyleDeclaration('  '.$googleWebFontTargets.'{font-family:'.$googleWebFontFamily.', serif !important}');
}

=>

/*if ($googleWebFont != "" && $googleWebFont != " " && strtolower($googleWebFont)!="none") {
	$doc->addStyleSheet('http://fonts.googleapis.com/css?family='.str_replace(" ","+",$googleWebFont).'');
	$googleWebFontFamily = strpos($googleWebFont, ':')?substr($googleWebFont, 0, strpos($googleWebFont, ':')):$googleWebFont;
	if(trim($googleWebFontTargets)!="")
		$doc->addStyleDeclaration('  '.$googleWebFontTargets.'{font-family:'.$googleWebFontFamily.', serif !important}');
}*/


Thanks!
Last Edit: 10 years, 10 months ago by anhqn.
The topic has been locked.
The following user(s) said Thank You: iman_r1364

Re: Turn off google fonts completely 10 years, 10 months ago #15598

It works.
Thanks SA Anh:)
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.19 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes