久久亚洲私人国产精品va,久久久久久曰本av免费免费,久久亚洲精品国产精品,久久精品九九亚洲精品,久久综合,久久综合,久久综合


隨著越來越多的站長開始重視seo了,對rel="nofollow"也在乎得多了。但是由于百度編輯器ueditor并不自帶rel="nofollow"功能,在引入其他站點(diǎn)URL鏈接的時候,就會導(dǎo)致蜘蛛流失,自己的網(wǎng)站權(quán)重下降。
 
今天抓頭模板網(wǎng)整理了一下,來教大家怎么改,讓ueditor的link自帶rel="nofollow"標(biāo)簽,話不多說,直接上圖。 
 
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'],

上述兩個文件修改好就可以實(shí)現(xiàn)rel="nofollow"了,網(wǎng)站后臺測試添加鏈接,測試成功,演示圖如下。


評論 (0)

請登錄

24h
7×24小時
售后支持
免費(fèi)備案
專業(yè)指導(dǎo)
VIP專屬
一對一服務(wù)
海量源碼
一鍵下載
專業(yè)技術(shù)
技術(shù)支持
極速響應(yīng)
快速解決問題
24h
售后
VIP
下載
支持
極速
嘿,我來幫您