WordPress complete eradication of Open Sans font

SLOW

Since WP recently updated several new versions since,Open WP from national speed is getting slower and slower,Seconds on a stretch from the original into a child can not open,This route had once made their own blog hosts, where the wall is out =。=

later,WP Super Cache get the route to achieve a full stop pre-caching,Then also optimized the code highlighting pluginWP syntaxhighlighter,Can still access speed is not very satisfactory,Until today, all of a suddenHost sideSaid a WP blog slow access solutions。

Google's Open Sans font

Because Google does not fit me towards a policy,It turned out like this now,So Google service moving within the basic disability,Then, if you view the page source in the latest version of WordPress Home files,You will see the following line:

Of course,If you use any browser to see the pattern of development timeline,We will see this thing is the longest load time,Sometimes even give you a minute to brush。and,It is not finished loading,The page is not out =。=

so,We should adapt to conditions,Remove this line maddening code,WP completely eradicated from the Open Sans

Eradication of several steps Open Sans

Font said that the influence of the background,Actually,It also affects the foreground,All right.,We begin with a theme from the use of。

Remove topic Open Sans

First you need to check under your theme directoryfunctions.php file,In it add the code below to save:

Then try to refresh your site,If you're like meBlog throughout a whiteGot it,Then please remove this sentence (I hope you are not directly edit this file in the background or you can ............Skip this step

Similarly sytl.css then find the file in your theme directory to edit the corresponding,Search Keyword font-family,See behind the font reference is not included in "Open Sans",For example, routing using this theme contains this font,So we put them into other mass fonts,For example, the route changed so:

Remove the background of Open Sans

 

Script-loader.php find this file in the wp-includes directory,Then find this section,In about 570 lines,Modifications:

Such,In fact, both front and back to get rid of the drag speed Open sans font。

Written in the last words

In fact, tell the truth each with a different theme inside its code style,The modified manner will vary,Especially if you are using some less formal third party and custom themes,That you may be more headache,so,I think you'll like the next word -

installation"Disable Google Fonts"This plug-in,Directly in one step =。-

 

Other than that,You can also refer toHereandHereTo see their point of view。

Original article written by LogStudio:R0uter's Blog » WordPress complete eradication of Open Sans font

Reproduced Please keep the source and description link:https://www.logcg.com/archives/553.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Leave a Reply

Your email address will not be published. Required fields are marked *