Shen Edge seo: How to remove the comments in WordPress nofollow?

Source: Internet
Author: User

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

We often encounter nofollow attributes, especially WordPress comments that automatically add external nofollow attributes. So what is nofollow? How can we get rid of it when we don't want it?

Let's take a look at what is nofollow. Nofollow is a new label Google introduced a few years ago to reduce spam messages. This label indicates that the link has nothing to do with the site author, which means the search engine does not use this link to calculate the PR value of the site. Many blog programs will automatically add nofollow tags to the comment link. Now the mainstream of the blog program, such as WordPress and MovableType, Z-blog, etc., are implicitly in its message link automatically add nofollow attribute. In WordPress, add is rel= "external nofollow". Example: Mitzie farrer This code is Shen Edge seo found in their own small station in the source code external nofollow attributes.

So is there a difference between nofollow and external nofollow? Before we understand the difference between the two, let's understand the meaning of the two, rel= ' external nofollow ' and rel= ' nofollow ' its function on Chinese translation "Do not read" and " External links do not read "meaning!" This shows that the role of the two is the same, but external nofollow is more professional than nofollow, that is, clearly pointed out that links for external links, spiders can skip.

When we don't want the links in the comments to have nofollow or external nofollow attributes, how do we get rid of them?

Then please open our WordPress, then find the Wp-include folder, open the Comment-template.php page, find the following code:

function Get_comment_author_link ($comment _id = 0) {

/** @todo functions when tightly are needed. Include in If ... else blocks * *

$url = Get_comment_author_url ($comment _id);

$author = Get_comment_author ($comment _id);

if (Empty ($url) | | ' http://' = $url)

$return = $author;

Else

$return = "$author";

Return apply_filters (' Get_comment_author_link ', $return);

}

In these codes, remove rel= ' external nofollow ' or change this line of code to target= ' _blank '. In this way our comments will not appear external follow.

This article has shen Edge SEO original A5 first reprint please keep the author and link thank!www.chenyuan66.com Welcome to study qq:32092216

Related Article

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.