﻿{"id":449,"date":"2014-07-02T15:51:44","date_gmt":"2014-07-02T07:51:44","guid":{"rendered":"http:\/\/www.wuhaibin.com\/blog\/?p=449"},"modified":"2014-07-03T10:18:02","modified_gmt":"2014-07-03T02:18:02","slug":"%e8%b0%b7%e6%ad%8c%e7%9a%84open-sans%e5%ad%97%e4%bd%93%e5%af%bc%e8%87%b4%e7%9a%84wordpress%e7%bd%91%e7%ab%99%e5%8a%a0%e8%bd%bd%e8%bf%87%e6%85%a2","status":"publish","type":"post","link":"http:\/\/www.wuhaibin.com\/blog\/work\/wordpress\/449.html","title":{"rendered":"\u8c37\u6b4c\u7684Open Sans\u5b57\u4f53\u5bfc\u81f4\u7684WordPress\u7f51\u7ad9\u52a0\u8f7d\u8fc7\u6162\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<h2>\n\t\u5e8f\u8a00<br \/>\n<\/h2>\n<p>\n\t<span class='wp_keywordlink_affiliate'><a href=\"http:\/\/www.wuhaibin.com\/blog\/category\/work\/wordpress\" title=\"WordPress\" rel=\"nofollow\" target=\"_blank\">WordPress<\/a><\/span>\u5927\u6982\u4ecewp-3.8\u5f00\u59cb\u4f1a\u81ea\u52a8\u52a0\u8f7dOpen Sans\u5b57\u4f53\uff0c\u5e76\u5f15\u7528Google\u4e0a\u9762\u7684CSS\u6837\u5f0f\u3002\u800c\u6700\u8fd1\u8c37\u6b4c\u7ecf\u5e38\u6253\u4e0d\u5f00\uff0c\u5bfc\u81f4\u7f51\u7ad9\u8bbf\u95ee\u901f\u5ea6\u8fc7\u6162\uff0c\u4e25\u91cd\u7684\u4f1a\u62d6\u6162\u51e0\u5341\u79d2\u3002Open Sans\u5b57\u4f53\u4e3b\u8981\u7528\u4e8eWP\u7ad9\u70b9\u7ba1\u7406\u5458\u767b\u9646\u540e\u9876\u90e8\u529f\u80fd\u6761\u7684\u5b57\u4f53\u6837\u5f0f\uff0c\u800c\u5bf9\u4e8e\u56fd\u5185\u7528\u6237\u6765\u8bf4\uff0cGoogle\u4f1a\u51fa\u73b0\u7ecf\u5e38\u6253\u4e0d\u5f00\u6216\u8005\u8bbf\u95ee\u901f\u5ea6\u8fc7\u6162\u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u4f1a\u62d6\u5ef6\u7ad9\u70b9\u7684\u6253\u5f00\u901f\u5ea6\u3002\u5f53\u7136\uff0c\u5982\u679c\u6ca1\u6709\u767b\u5f55\u540e\u53f0\u76f4\u63a5\u8bbf\u95ee\u7ad9\u70b9\uff0c\u4e0d\u4f1a\u51fa\u73b0\u52a0\u8f7d\u5b57\u4f53\u7684\u95ee\u9898\u3002 \u901a\u8fc7\u89c2\u5bdf\u4ee3\u7801\u53ef\u4ee5\u770b\u5230\uff0cWP\u662f\u8fd9\u6837\u52a0\u8f7d\u5b57\u4f53\u7684\uff0c\u5728script-loader.php\uff08wp-3.9\uff09\u7684580\u884c\u4ee3\u7801\u8fdb\u884c\u52a0\u8f7d\u3002\n<\/p>\n<blockquote>\n<p>\n\t\t<span style=\"font-size:12px;\">&lt;link rel=&quot;stylesheet&quot; id=&quot;open-sans-css&quot; href=&quot;\/\/fonts.googleapis.com\/css?<br \/>\n\t\tfamily=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&amp;amp;<br \/>\n\t\tsubset=latin%2Clatin-ext&amp;amp;ver=3.9.1&quot; type=&quot;text\/css&quot; media=&quot;all&quot;&gt;<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n\t\u90a3\u8be5\u600e\u4e48\u53bb\u6389\u5462\uff1f\u65b9\u6cd5\u4e3b\u8981\u67094\u4e2a\uff1afunctions.php\u8fc7\u6ee4\u3001\u63d2\u4ef6\u8fc7\u6ee4\u3001\u4e00\u952e\u66ff\u6362\u7a0b\u5e8f\u4ee3\u7801\u3001GoAgent\u7ffb\u5899\n<\/p>\n<h2>\n\t\u4e00\u3001functions.php\u8fc7\u6ee4<br \/>\n<\/h2>\n<p>\n\t\u7b80\u4ecb\n<\/p>\n<p>\n\t\u5728\u4e3b\u9898\u4e2d\u7684functions.php\u6587\u4ef6\u672b\u5c3e\u52a0\u4e0a\u4e00\u4e0b\u4ee3\u7801\u4e4b\u4e00\u5373\u53ef\u3002\u6b64\u65b9\u6cd5\u4ec5\u5728\u524d\u53f0\u6709\u6548\uff0c\u5728\u540e\u53f0\u754c\u9762\u65e0\u6548\uff0c\u56e0\u4e3a\u4ec5\u4fee\u6539\u4e3b\u9898\u4ee3\u7801\u3002\n<\/p>\n<p>\n\t1. \u4ee3\u7801\u4e00\n<\/p>\n<blockquote>\n<p>\n\t\t<span style=\"font-size:12px;\">\/\/ Remove Open Sans that WP adds from frontend<br \/>\n\t\tif (!function_exists(&#39;remove_wp_open_sans&#39;)) :<br \/>\n\t\t&nbsp; &nbsp; function remove_wp_open_sans() {<br \/>\n\t\t&nbsp; &nbsp; &nbsp; &nbsp; wp_deregister_style( &#39;open-sans&#39; );<br \/>\n\t\t&nbsp; &nbsp; &nbsp; &nbsp; wp_register_style( &#39;open-sans&#39;, false );<br \/>\n\t\t&nbsp; &nbsp; }<br \/>\n\t\t&nbsp; &nbsp; add_action(&#39;wp_enqueue_scripts&#39;, &#39;remove_wp_open_sans&#39;);<br \/>\n\t\t&nbsp;<br \/>\n\t\t&nbsp; &nbsp; \/\/ Uncomment below to remove from admin<br \/>\n\t\t&nbsp; &nbsp; \/\/ add_action(&#39;admin_enqueue_scripts&#39;, &#39;remove_wp_open_sans&#39;);<br \/>\n\t\tendif;<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n\t2. \u4ee3\u7801\u4e8c\n<\/p>\n<blockquote>\n<p>\n\t\t<span style=\"font-size:12px;\">function remove_open_sans() { &nbsp; &nbsp;<br \/>\n\t\t&nbsp; &nbsp; wp_deregister_style( &#39;open-sans&#39; ); &nbsp; &nbsp;<br \/>\n\t\t&nbsp; &nbsp; wp_register_style( &#39;open-sans&#39;, false ); &nbsp; &nbsp;<br \/>\n\t\t&nbsp; &nbsp; wp_enqueue_style(&#39;open-sans&#39;,&#39;&#39;); &nbsp; &nbsp;<br \/>\n\t\t} &nbsp; &nbsp;<br \/>\n\t\tadd_action( &#39;init&#39;, &#39;remove_open_sans&#39; );<\/span>\n\t<\/p>\n<\/blockquote>\n<h2>\n\t\u4e8c\u3001\u63d2\u4ef6\u8fc7\u6ee4<br \/>\n<\/h2>\n<p>\n\t\u7b80\u4ecb\n<\/p>\n<p>\n\t\u4e3a\u6b64\u6709\u4e13\u95e8\u7684\u63d2\u4ef6\u6765\u53bb\u9664\u5b57\u4f53\u52a0\u8f7d\u3002\u6b64\u65b9\u6cd5\u5728\u524d\u53f0\u548c\u540e\u53f0\u5747\u6709\u6548\u3002\n<\/p>\n<p>\n\t1. \u63d2\u4ef6\u4e00\n<\/p>\n<p>\n\t\u540d\u79f0\uff1aRemove Open Sans font Link from WP core \u5730\u5740\uff1ahttp:\/\/<span class='wp_keywordlink_affiliate'><a href=\"http:\/\/www.wuhaibin.com\/blog\/category\/work\/wordpress\" title=\"WordPress\" rel=\"nofollow\" target=\"_blank\">WordPress<\/a><\/span>.org\/plugins\/remove-open-sans-font-from-wp-core\/ \u7b80\u4ecb\uff1aInstalls &lsquo;Remove Open Sans font Link from WP core&rsquo; plugin on your <span class='wp_keywordlink_affiliate'><a href=\"http:\/\/www.wuhaibin.com\/blog\/category\/work\/wordpress\" title=\"WordPress\" rel=\"nofollow\" target=\"_blank\">WordPress<\/a><\/span> blog, so it will doesn&rsquo;t load Open Sans font from Google fonts. \u79fb\u9664WP\u6838\u5fc3\u7684\u8c37\u6b4c\u5b57\u4f53\u94fe\u63a5.\n<\/p>\n<p>\n\t2. \u63d2\u4ef6\u4e8c\n<\/p>\n<p>\n\t\u540d\u79f0\uff1aDisable Google Fonts \u5730\u5740\uff1ahttp:\/\/wordpress.org\/plugins\/disable-google-fonts\/ \u7b80\u4ecb\uff1a\u53e6\u4e00\u4e2a\u7c7b\u4f3c\u7684\u63d2\u4ef6\n<\/p>\n<h2>\n\t\u4e09\u3001\u4e00\u952e\u66ff\u6362\u7a0b\u5e8f\u4ee3\u7801<br \/>\n<\/h2>\n<p>\n\t\u7b80\u4ecb\n<\/p>\n<p>\n\t\u6b64\u811a\u672c\u4e0d\u4ec5\u53ef\u4ee5\u89e3\u51b3wordpress\u56e0\u8c37\u6b4ccdn\u8d44\u6e90\u9020\u6210\u7f51\u7ad9\u52a0\u8f7d\u7f13\u6162\u7684\u95ee\u9898\uff0c\u800c\u4e14\u53ea\u8981\u662f\u652f\u6301php\u7684\u7a7a\u95f4\u4e5f\u53ef\u4ee5\u89e3\u51b3\u4efb\u4f55\u5efa\u7ad9\u7a0b\u5e8f\u56e0\u4e3a\u8c37\u6b4ccdn\u8d44\u6e90\u5f15\u8d77\u7684\u52a0\u8f7d\u7f13\u6162\u7684\u95ee\u9898\u3002\n<\/p>\n<p>\n\t\u4f7f\u7528\u65b9\u6cd5\n<\/p>\n<p>\n\t1. \u5c06\u4e0b\u8f7d\u597d\u7684php\u811a\u672c\uff08PS\uff1a\u811a\u672c\u4f5c\u7528\u5c06\u7a0b\u5e8f\u5f15\u5165\u7684\u8c37\u6b4c\u5b57\u4f53\u4ee5\u53ca\u5176\u4ed6\u8c37\u6b4ccdn\u8d44\u6e90\u66ff\u6362\u6210360\u8d44\u6e90\uff09\u4e0a\u4f20\u81f3\u7f51\u7ad9\u6839\u76ee\u5f55\u3002 2. \u6210\u529f\u4e0a\u4f20\u6587\u4ef6\u540e\u76f4\u63a5\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\u8be5\u6587\u4ef6\uff0c\u5e76\u4e14\u70b9\u51fb\u5f00\u59cb\u6267\u884c\u64cd\u4f5c\u3002 3. \u7a0b\u5e8f\u6267\u884c\u5b8c\u6210\uff0c\u8fd9\u65f6\u5019\u53ef\u4ee5\u53bb\u4f53\u9a8c\u4e0b\u987a\u7545\u7684\u6548\u679c\uff08\u4e00\u952e\u89e3\u51b3\u524d\u53f0\u3001\u540e\u53f0\u8c37\u6b4c\u5b57\u4f53\u95ee\u9898\uff09\n<\/p>\n<p>\n\t\u811a\u672c\u4e0b\u8f7d\n<\/p>\n<p>\n\t\u7f51\u76d8\u7248\uff1ahttp:\/\/pan.baidu.com\/s\/1sjtwPYl\n<\/p>\n<p>\n\t\u8fd0\u884c\u622a\u56fe\n<\/p>\n<p>\n\t\u9876\u90e8\u7684notice\u63d0\u9192\u53ef\u65e0\u89c6\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/82911403428318.png\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"font-size: 13px; line-height: 1.6em; width: 630px; height: 187px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/82911403428318.png\" style=\"font-size: 13px; line-height: 1.6em; width: 630px; height: 187px;\" \/><\/noscript>\n<\/p>\n<p>\n\t<span style=\"font-size: 13px; line-height: 1.6em;\">\u5c0f\u7ed3<\/span>\n<\/p>\n<p>\n\t\u5982\u679c\u662fwin\u7cfb\u7edf\u7684\u4e3b\u673a\u53ef\u80fd\u8bbf\u95ee\u811a\u672c\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u8b66\u544a\u62a5\u9519\uff0c\u76f4\u63a5\u6216\u7565\u5373\u53ef\u3002\u4e0a\u56fe\u4e2d\u7528\u7ea2\u6846\u6846\u8d77\u6765\u7684\u90e8\u5206\u5c31\u662f\u8be5\u811a\u672c\u626b\u63cf\u8fc7\u7684\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u5217\u8868\uff0cYES\u548cNO\u8868\u793a\u8be5\u6587\u4ef6\u662f\u5426\u67e5\u8be2\u5230\u7b26\u5408\u89c4\u5b9a\u7684\u5b57\u7b26\u3002\uff08PS\uff1a\u8be5\u811a\u672c\u8fd8\u53ef\u4ee5\u7528\u6765\u626b\u63cf\u9ed1\u94fe\u4ee5\u53ca\u6076\u610f\u4ee3\u7801\u3002\uff09\n<\/p>\n<h2>\n\t\u56db\u3001360\u5b57\u4f53\u52a0\u901f\u65b9\u6848<br \/>\n<\/h2>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t360\u7f51\u7ad9\u536b\u58eb\u63a8\u51fa\u4e00\u9879\u5b57\u4f53\u52a0\u901f\u670d\u52a1\uff0c\u7ad9\u957f\u53ea\u8981\u4fee\u6539\u4e00\u884c\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u5230\u7531360\u7f51\u7ad9\u536b\u58ebCDN\u52a0\u901f\u7684\u5b57\u4f53\u670d\u52a1\u3002\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t<strong style=\"margin: 0px; padding: 0px;\">\u4fee\u6539\u65b9\u6cd5\u5982\u4e0b\uff1a<\/strong>\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t\u6253\u5f00wordpress\u4ee3\u7801\u4e2d\u7684\u6587\u4ef6wp-includes\/script-loader.php\u6587\u4ef6\uff0c\u641c\u7d22\uff1afonts.googleapis.com\u627e\u5230\u8fd9\u884c\u4ee3\u7801\uff1a\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t$open_sans_font_url = &quot;\/\/fonts.googleapis.com\/css?family1=Open+Sans:300italic,400italic,600italic,300,400,600&amp;subset=$subsets&quot;;\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.hsrlseo.com\/aspqq\/badued\/asp\/upload1\/20140605\/_13.jpg\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"width: 564px; height: 110px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.hsrlseo.com\/aspqq\/badued\/asp\/upload1\/20140605\/_13.jpg\" style=\"width: 564px; height: 110px;\" \/><\/noscript>\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t\u628afonts.googleapis.com\u66ff\u6362\u4e3afonts.useso.com\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.hsrlseo.com\/aspqq\/badued\/asp\/upload1\/20140605\/_14.jpg\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"width: 501px; height: 47px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.hsrlseo.com\/aspqq\/badued\/asp\/upload1\/20140605\/_14.jpg\" style=\"width: 501px; height: 47px;\" \/><\/noscript>\n<\/p>\n<p style=\"margin: 5px 0px 0px; padding: 0px; line-height: 23px; text-indent: 2em; color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px;\">\n\t<span style=\"color: rgb(0, 0, 0); font-family: \ufffd\ufffd\ufffd\ufffd; font-size: 14px; line-height: 23px; text-indent: 28px;\">\u4fee\u6539\u5b8c\u4fdd\u5b58\uff0c\u518d\u6b21\u5237\u65b0\uff0c\u5927\u5bb6\u5c31\u53ef\u4ee5\u53d1\u73b0\uff0c\u81ea\u5df1\u7684\u7f51\u7ad9\u901f\u5ea6\u5df2\u7ecf\u6bd4\u4ee5\u524d\u5feb\u4e86\u5f88\u591a\uff0c\u51e0\u4e4e\u77ac\u95f4\u5c31\u53ef\u4ee5\u62ff\u5230Google\u5b57\u4f53\u4e86\u3002\u539f\u56e0\u5c31\u662f\u672c\u6765\u9700\u8981\u4ece\u7f8e\u56fd\u670d\u52a1\u5668\u624d\u80fd\u62ff\u5230\u7684google\u5b57\u4f53\uff0c\u73b0\u5728\u5df2\u7ecf\u904d\u5e03360\u5168\u56fd\u7684\u673a\u623f\u4e86\u3002<\/span>\n<\/p>\n<h2>\n\t\u4e94\u3001\u4f7f\u7528GoAgent<br \/>\n<\/h2>\n<p>\n\t\u5982\u679c\u4f60\u5728\u4f7f\u7528GoAgent\u7cfb\u7edf\u4ee3\u7406\uff0c\u53ef\u4ee5\u5728SwitchySharp\u6216\u8005AutoProxy\u9009\u9879\u91cc\u6dfb\u52a0\u5207\u6362\u89c4\u5219\uff1a\n<\/p>\n<p>\n\t\u89c4\u5219\u540d\u79f0\uff1agoogle-fonts\n<\/p>\n<p>\n\tURL \u6a21\u5f0f\uff1a*:\/\/*.googleusercontent.com\/*\n<\/p>\n<p>\n\t\u60c5\u666f\u6a21\u5f0f\uff1aGoAgent\n<\/p>\n<p>\n\t\u5b57\u4f53\n<\/p>\n<p>\n\tOpen Sans\u5b57\u4f53\u633a\u597d\u770b\u7684\uff0c\u5982\u679c\u662f\u7528\u56fd\u5916\u7684\u4e3b\u9898\u5e76\u4e14\u7528\u4e0a\u8fd9\u4e2a\u5b57\u4f53\uff0c\u6216\u8005\u662f\u60f3\u4fdd\u7559\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u5b89\u88c5\u8be5\u5b57\u4f53\u3002\u5c06\u538b\u7f29\u5305\u91cc\u9762\u7684\u6587\u4ef6\u62f7\u8d1d\u5230C\u76d8fonts\u6587\u4ef6\u5939\u5373\u53ef\u5b8c\u6210\u5b89\u88c5\u3002\n<\/p>\n<p>\n\t\u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/xuanfengge.com\/demo\/201406\/Open-Sans.zip\n<\/p>\n<p>\n\t\u6548\u679c\u9884\u89c8\uff1ahttp:\/\/www.google.com\/fonts\/specimen\/Open+Sans\n<\/p>\n<p>\n\t\u5206\u6790\u539f\u56e0\n<\/p>\n<p>\n\t\u7531\u4e8e\u6700\u8fd1\u8c37\u6b4c\u88ab\u5f3a\uff0c\u5f88\u96be\u6253\u5f00\uff0c\u5bfc\u81f4\u7ad9\u70b9\u5728\u5f15\u7528\u8c37\u6b4c\u4e0a\u7684\u8d44\u6e90\uff0c\u5982\u5b57\u4f53\u3001jquery\u7b49\u6587\u4ef6\u65f6\uff0c\u4f1a\u51fa\u73b0\u4e25\u91cd\u8d85\u65f6\u7684\u60c5\u51b5\uff0c\u6700\u7ec8\u5bfc\u81f4\u7ad9\u70b9\u6253\u5f00\u901f\u5ea6\u6781\u6162\u3002\u8fd9\u4e2a\u53ef\u80fd\u662f\u5176\u4e2d\u7684\u4e00\u4e2a\u539f\u56e0\uff0c\u4f46\u5177\u4f53\u662f\u4ec0\u4e48\uff0c\u53c8\u5982\u4f55\u627e\u51fa\u6839\u6e90\u5462\uff1f\u4e0b\u9762\u6765\u7b80\u5355\u5206\u6790\u4e0b\uff08Chrome\u6d4f\u89c8\u5668\u4e0b\uff09\n<\/p>\n<p>\n\t1. \u67e5\u770b\u7f51\u7edc\u8fde\u63a5\n<\/p>\n<p>\n\t\u7ad9\u70b9\u5728\u672a\u5b8c\u5168\u6253\u5f00\u7684\u60c5\u51b5\u4e0b\uff0cChrome\u7684\u5de6\u4e0b\u89d2\u4f1a\u663e\u793a\u7f51\u7edc\u8bf7\u6c42\u7684\u72b6\u6001\uff0c\u5982&ldquo;\u6b63\u5728\u89e3\u6790\u4e3b\u673a&rdquo;\u3001&ldquo;\u6b63\u5728\u7b49\u5f85tieba.baidu.com\u54cd\u5e94&rdquo;\u3002\u5982\u679c\u6b64\u65f6\u53d1\u73b0\u5728\u67d0\u4e2a\u54cd\u5e94\u7b49\u5f85\u65f6\u95f4\u8fc7\u957f\uff08\u4e00\u822c\u662f\u5916\u7ad9\u8d44\u6e90\uff0c\u5982\u5934\u50cf\u3001\u5b57\u4f53\uff09\uff0c\u90a3\u8fd9\u4e2a\u5c31\u662f\u4e00\u4e2a\u62d6\u6162\u901f\u5ea6\u7684\u539f\u56e0\u3002 sdfsdfsd\n<\/p>\n<p>\n\t2. \u67e5\u770b\u7f51\u7edc\u8bf7\u6c42\n<\/p>\n<p>\n\tF12\u6216\u53f3\u952e&ldquo;\u5ba1\u67e5\u5143\u7d20&rdquo;\u8fdb\u5165\u5f00\u53d1\u8005\u6a21\u5f0f\uff0c\u9009\u62e9&ldquo;Network&rdquo;\uff0cF5\u5237\u65b0\u9875\u9762\uff0c\u67e5\u770b\u6218\u60c5\u7684\u7f51\u7edc\u8bf7\u6c42\u3002\u7b49\u5f85\u5b8c\u5168\u52a0\u8f7d\u540e\uff0c\u67e5\u770b\u6240\u6709\u7684\u8bf7\u6c42\uff0c\u7ea2\u8272\u90e8\u5206\u4e3a\u8bbf\u95ee\u51fa\u9519\uff0c\u672a\u8bf7\u6c42\u5230\u8d44\u6e90\uff0c\u540c\u65f6\u53ef\u4ee5\u518d\u8be5\u9879\u7684Time\u770b\u5230\u8bf7\u6c42\u5230\u51fa\u7ed3\u679c\u6240\u82b1\u8d39\u7684\u65f6\u95f4\u3002\u5982\u679c\u65f6\u95f4\u8fc7\u957f\uff0c\u4e5f\u662f\u4e00\u4e2a\u62d6\u6162\u7ad9\u70b9\u8bbf\u95ee\u901f\u5ea6\u7684\u539f\u56e0\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/7_V27MHS_I@PF8OWR7.jpg\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"width: 630px; height: 160px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/7_V27MHS_I@PF8OWR7.jpg\" style=\"width: 630px; height: 160px;\" \/><\/noscript>\n<\/p>\n<p>\n\tChrome\u5f00\u53d1\u8005\u5de5\u5177\n<\/p>\n<p>\n\t3. \u5b9a\u4f4d\u6839\u6e90\n<\/p>\n<p>\n\t\u6839\u636e\u4e0a\u9762\u7684\u4ecb\u7ecd\uff0c\u627e\u5230\u8bbf\u95ee\u8fc7\u6162\u7684\u8bf7\u6c42\uff0c\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u5185\u5bb9\u3002\u5982\u51fa\u73b0\u8c37\u6b4c\u5b57\u4f53\u52a0\u8f7d\u95ee\u9898\uff0c\u5982\u8bf7\u6c42URL\u4e3ahttp:\/\/fonts.googleapis.com\/css?family=Open+Sans&amp;ver=3.9.1\u3002 \u6b64\u65f6\u5f00\u53d1\u8005\u9762\u677f\u5207\u6362\u5230Elements\u9875\u9762\uff0cCTRL+F\u641c\u7d22&ldquo;Google&rdquo;\u6216\u8005\u5176\u4ed6\u5173\u952e\u5b57\uff0c\u53ef\u5728\u4ee3\u7801\u4e2d\u5b9a\u4f4d\u8fd9\u4e2a\u8bf7\u6c42\u7684\u4f4d\u7f6e\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/NC8CC63MJWOZ815S3UD.jpg\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"width: 630px; height: 89px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/NC8CC63MJWOZ815S3UD.jpg\" style=\"width: 630px; height: 89px;\" \/><\/noscript>\n<\/p>\n<p>\n\t4. \u6587\u4ef6\u5b9a\u4f4d\n<\/p>\n<p>\n\t\u4e0a\u9762\u662f\u627e\u5230\u4e86\u539f\u56e0\uff0c\u4f46\u662f\u53ef\u80fd\u4ee3\u7801\u5e76\u4e0d\u662f\u5728header.php\u6216\u8005index.php\u91cc\u9762\u3002\u90a3\u5c31\u9700\u8981\u4f7f\u7528\u7f16\u8f91\u5668\u641c\u7d22\u4e86\uff0c\u5728\u4e3b\u9898\u4e2d\u641c\u7d22\u3002\u5982\u4f7f\u7528sublime\u7f16\u8f91\u5668\uff0c\u5c06\u4e3b\u9898\u6587\u4ef6\u5939\u62d6\u62fd\u5230\u7f16\u8f91\u5668\u4e2d\uff0c\u5728\u9879\u76ee\u53f3\u952e&ldquo;Find in Folder&rdquo;\uff0c\u8f93\u5165\u5173\u952e\u5b57\uff0c\u5373\u53ef\u5728\u591a\u6587\u4ef6\u4e2d\u5b9a\u4f4d\u4ee3\u7801\u4f4d\u7f6e\u3002\u627e\u5230\u4ee3\u7801\u540e\uff0c\u6ce8\u91ca\u76f8\u5173\u4ee3\u7801\u5373\u53ef\u3002\u5982\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" data-original=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/sdfsdf.jpg\" src=\"http:\/\/www.wuhaibin.com\/blog\/wp-content\/themes\/Ality\/img\/loading.gif\" style=\"width: 288px; height: 154px;\" \/>\n<noscript><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.xuanfengge.com\/wp-content\/uploads\/2014\/06\/sdfsdf.jpg\" style=\"width: 288px; height: 154px;\" \/><\/noscript>\n<\/p>\n<p>\n\t\u5982\u627e\u5230\u5e76\u6ce8\u91ca\u4ee3\u7801\uff08functions.php\uff09\uff0c\u53ef\u89e3\u51b3\u51fa\u73b0http:\/\/fonts.googleapis.com\/css?family=Open+Sans&amp;ver=3.9.1\u8bf7\u6c42\u7684\u95ee\u9898\n<\/p>\n<blockquote>\n<p>\n\t\t<span style=\"font-size:12px;\">\/\/wp_enqueue_style( &#39;google-font&#39;, &#39;http:\/\/fonts.googleapis.com\/css?family=&#39;.$all_font );<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n\t\u6ce8\u91ca\u4ee5\u4e0b\u4ee3\u7801\uff08html5lightbox.js\uff09\u53ef\u89e3\u51b3\u51fa\u73b0http:\/\/fonts.googleapis.com\/css?family=Armata\u8bf7\u6c42\u7684\u95ee\u9898\n<\/p>\n<blockquote>\n<p>\n\t\t<span style=\"font-size:12px;\">\/\/ var fontRef = (&quot;https:&quot; == document.location.protocol ? &quot;https&quot; : &quot;http&quot;) + &quot;:\/\/fonts.googleapis.com\/css?family=Armata&quot;;<br \/>\n\t\t\/\/ var fontLink = document.createElement(&quot;link&quot;);<br \/>\n\t\t\/\/ fontLink.setAttribute(&quot;rel&quot;, &quot;stylesheet&quot;);<br \/>\n\t\t\/\/ fontLink.setAttribute(&quot;type&quot;, &quot;text\/css&quot;);<br \/>\n\t\t\/\/ fontLink.setAttribute(&quot;href&quot;, fontRef);<br \/>\n\t\t\/\/ document.getElementsByTagName(&quot;head&quot;)[0].appendChild(fontLink);<\/span><br \/>\n\t\t\u5982\u679c\u611f\u89c9\u901f\u5ea6\u4e0d\u591f\u5feb\uff0c\u90a3\u5c31\u8fdb\u884c\u66f4\u591a\u7684\u4f18\u5316\u6bd4\u5982CDN\u52a0\u901f\u3001\u7f13\u5b58\u3001\u670d\u52a1\u5668\u7b49\u7b49\u4f18\u5316\u5427\n\t<\/p>\n<\/blockquote>\n<h2>\n\t\u6ce8\u610f\uff1a<br \/>\n<\/h2>\n<p>\n\t\u4e0d\u540c\u7684\u4e3b\u9898\uff0c\u5b57\u4f53\u63d0\u53d6\u7684\u4f4d\u7f6e\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6211\u7528\u7684\u4e3b\u9898\u662faldehyde\uff0c\u5bfc\u81f4\u7f51\u7ad9\u53d8\u6162\u7684\u5b57\u4f53\u63d0\u53d6\u662f\u5728functions.php\u6587\u4ef6\u4e2d\uff0c\u6240\u4ee5\u9700\u8981\u4fee\u6539\u8be5\u6587\u4ef6\u4e2d\u5b57\u4f53\u5730\u5740\u3002\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e8f\u8a00 WordPress\u5927\u6982\u4ecewp-3.8\u5f00\u59cb\u4f1a\u81ea\u52a8\u52a0\u8f7dOpen Sans\u5b57\u4f53\uff0c\u5e76\u5f15\u7528Google\u4e0a\u9762\u7684CSS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[30],"tags":[34],"views":6658,"_links":{"self":[{"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/posts\/449"}],"collection":[{"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/comments?post=449"}],"version-history":[{"count":0,"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/posts\/449\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/media?parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/categories?post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wuhaibin.com\/blog\/wp-json\/wp\/v2\/tags?post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}