wordpress主题设置所有链接新标签窗口打开-WordPress主题

摘要:对于wordpress网站来讲新窗口打开是最符合用户体验及减少跳出率的操作功能,那如果主题设置中并没有添加此类的新窗口打…

对于wordpress网站来讲新窗口打开是最符合用户体验及减少跳出率的操作功能,那如果主题设置中并没有添加此类的新窗口打开功能,我们可以通过下面的代码快速实现整站链接新窗口打开的功能,这样可以有效的防止跳转外部页面和增加用户留存率。

将下面的代码添加到当前wordpress主题Functions.php文件中

add_filter(‘the_content’, ‘autoblank’);

完成以上操作之后就可以实现所有页面链接新窗口打开的效果了。

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