教程介绍
自从谷歌被墙了,就连谷歌字体也链接不上了,但是WordPress后台和一些外国主题都使用了谷歌字体,谷歌字体链接不上自然就导致了WordPress奇慢无比,所以在国内使用WordPress做的第一件事就是去掉谷歌字体。
将以下代码添加到当前使用的主题的functions.php文件中即可。
代码预览
//去除谷歌字体 if (!function_exists('remove_wp_open_sans')) : function remove_wp_open_sans() { wp_deregister_style( 'open-sans' ); wp_register_style( 'open-sans', false ); } // 前台删除Google字体CSS add_action('wp_enqueue_scripts', 'remove_wp_open_sans'); // 后台删除Google字体CSS add_action('admin_enqueue_scripts', 'remove_wp_open_sans'); endif;
阅读全文
Domain Name will be useful to create webtsie, Once domain is created that domain has to be hosted for putting the files and hosting of Email id, for the website to go online which will be visible through out the world.
测试评论