自动为wordpress外部链接加上nofollow-WordPress主题

摘要:防止我们日常内容输出中出现外部的网站链接总是,我们可以在wordpress主题核心函数文件内添加以下代码来自动识别外部链…

防止我们日常内容输出中出现外部的网站链接总是,我们可以在wordpress主题核心函数文件内添加以下代码来自动识别外部链接,并且加上nofollow功能,防止网站权重流失或是出现降权的问题。

将以下代码添加入functions.php文件内

来源:http://www.wazhuti.com/3314.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_12775.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?