您现在的位置是:首页 > 教程 > pbootcms教程pbootcms教程
pbootcms百度编辑器UEDITOR给超链接默认添加rel="nofollow"
灵雁2024-09-02 18:55:59pbootcms教程已有人查阅
导读随着越来越多的站长开始重视SEO了,对rel="nofollow"也在乎得多了。但是由于百度编辑器Ueditor并不自带rel="nofollow"功能,在引入其他站点URL链接的时候
随着越来越多的站长开始重视SEO了,对rel="nofollow"也在乎得多了。但是由于百度编辑器Ueditor并不自带rel="nofollow"功能,在引入其他站点URL链接的时候,就会导致蜘蛛流失,自己的网站权重下降。今天教大家怎么改,让uedITor的link自带rel="nofollow"标签,话不多说。
1、找到/core/extend/ueditor/dialogs/link/link.HTML,修改第81行。
1、找到/core/extend/ueditor/dialogs/link/link.HTML,修改第81行。
'href' : href,
'target' : $G("target").checked ? "_blank" : '_self',
'title' : $G("title").value.replace(/^\s+|\s+$/g, ''),
'_href':href
修改成:
'href' : href,
'target' : $G("target").checked ? "_blank" : '_self',
'title' : $G("title").value.replace(/^\s+|\s+$/g, ''),
'rel': 'nofollow',
'_href':href
2、找到/core/extend/ueditor/ueditor.config.js,修改第370行。
a: ['target', 'href', 'title', 'class', 'style','name','id'],
abbr: ['title', 'class', 'style'],
abbr: ['title', 'class', 'style'],
area: ['shape', 'coords', 'href', 'alt'],
修改成:
a: ['target', 'href', 'title', 'class', 'style','name','rel','id'],
abbr: ['title', 'class', 'style'],
abbr: ['title', 'class', 'style'],
area: ['shape', 'coords', 'href', 'alt'],
上述两个文件修改好就可以实现rel="nofollow"了,网站后台测试添加链接,测试成功,演示图如下。
本文标签:
很赞哦! ()
相关文章
- pbootcms升级提示执行SQL发生错误!错误:duplicate column name: picstitle
- pbootcms模板导航调用方法
- pbootcms模板产品置顶调用写法
- pbootcms后台公司信息内容调用到前台页面上的标签写法
- pbootcms上传图片变模糊图片尺寸受限的解决方法
- pbootcms伪静态设置教程
- pbootcms怎么增加webp和mov等上传文件类型
- pbootcms制作tag标签静态URL路径的实现方法
- pbootcms后台登录验证码看不清的解决方法
- pbootcms上传缩略图限制尺寸的方法
- pbootcms上一篇下一篇把“没有了”改成英文的方法
- pbootcms模板指定内容标签调用写法和参数说明
随机图文
-
pbootcms模板导航外链实现新窗口打开的修改方法
pbootcms模板导航设置外链时,如何实现新窗口打开外链。把以上代码加到导航的a链接里。参考如下 -
pbootcms禁止数字id方式访问栏目的修改方法
近期群友反馈pbootcms伪静态下栏目可以www.xxx.com/about/或者www.xxx.com/1/访问,对于seo严谨的人来说不合理,那么如何关闭数字id方式访问栏目,下面来介绍下 -
pbootcms实现Ajax在线投票功能的方法
最近用PbootCms做了一个在线投票的功能,分享一下代码。其实这个功能之前就已经分享过一次,有兴趣的同学移步:优化pbootcms的点赞效果。投票其实就是点赞。 -
pbootcms模板利用宝塔面板计划任务自动推送网址到百度的方法
在站点根目录新建一个PHP文件,例如:bAIdu.php,并复制下方代码添加带baidu.php文件中。 注意:两处需要修改的博主都已经在末尾添加了注释,记得修改为自己的,然后保存。
留言与评论 (共有 条评论) |