WordPress modified source code to link to add nofollow options

Source: Internet
Author: User
Keywords WordPress source code

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

In the use of WordPress to create a blog to exchange links with people in the process, may encounter before the site with you to do the link suddenly can't visit, you are temporarily not connected to each other webmaster, do not know the other side of the site is temporarily interrupted or permanently closed, then you can give his link temporary drop right, plus the rel= " Nofollow "Mark, observe a period of time again decide to stay, this kind of practice is also a kind of commercial and honest ha.

Knowledge Point: Nofollow is an attribute value of an HTML tag. Tell the search engine not to follow this link. The meaning of this label is to tell the search engine that the link is not trusted by the author, so this link is not a trust ticket. For example: If a page has a link to the B page, but a page to the link with the rel= "nofollow" annotation, then the search engine does not calculate a page into the Reverse Link b page. The search engine sees this tag and may reduce or completely cancel the voting weight of the link.

WordPress modified source code to link to add nofollow options:

1: Find "/wp-admin/includes/meta-boxes.php" documents;

2: Locate the following code location:

< label for= "Friendship" >

< input id= "friendship" type= "Radio" name= "Friendship" value= ""/>/>

</label >

Add the following code before this code:

< label for= "Nofollow" >

< input name= "friendship" type= "Radio" value= "nofollow" id= "nofollow" < php xfn_check (' Friendship ', ' nofollow ') >/>

  

Update after saving.

View your wordpress background link management interface, as shown in the red mark below, will have an extra nofollow option.

  

Nofollow

PS: When you upgrade WordPress,/wp-admin/includes/meta-boxes.php file will be overwritten, please remember to modify this file.

Worry-free Travel network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.