WordPress 5.x版本移除顶部的wp-block-library-css引用-WordPress主题

摘要:wordpress在升级到5.x版本后,多了一项wp-block-library-css调用,而这个调用的主要功能是给到…

wordpress在升级到5.x版本后,多了一项wp-block-library-css调用,而这个调用的主要功能是给到古腾堡编辑器使用的,如果你的wordpress站点。默认没有使用古腾堡的编辑器,那你大可以把wp-block-library-css调用屏蔽掉,从而增加我们的wordpress站点的访问速度。

所以对于我们使用经典编辑器的wordpress站点不说,大可以把wp-block-library-css的引用屏蔽掉,只需要把下面的代码添加到wordpress当前主题的functions.php文件内就可以了。

添加后保存即可移除wordpress顶部的wp-block-library-css.css文件的引用了。

来源:http://www.wazhuti.com/4521.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_12801.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?