Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 05/13/2019 :  00:44:21  
To improve website speed, I want to remove google font and use system font to instead:

First, I need to remove <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

There are font-family in 25 positions in stye.css
How and where to insert following system fonts into css?

[brown]font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;[/brown]

Is there any other thing I have to do?

Andy
ECT Moderator

95440 Posts

Posted - 05/13/2019 :  00:50:56  
Hi

In style.css you would replace each instance of

font-family:Open Sans, sans-serif;

With what you want to use so from your example and an example from style.css

body{padding:0;margin:0;font-family:Open Sans, sans-serif;font-size:18px;color:#000}

would become

body{padding:0;margin:0;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;font-size:18px;color:#000}

Andy

Please feel free to review / rate our software

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 05/14/2019 :  01:49:40  
Hi Andy, thanks.

The font seems work well, however I found that the layout changed.
Left sidebox and body content not in the center.
How to fix it?

Andy
ECT Moderator

95440 Posts

Posted - 05/14/2019 :  02:04:09  
Is the only change you made related to the font-family, nothing else?

Andy

Please feel free to review / rate our software

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 05/14/2019 :  02:34:16  
Andy, thank for your reply.

I have solved the issue.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000