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