discuz! X3.1 Modify Tag tab page Title tutorial

Source: Internet
Author: User
Keywords discuz discuz!

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

We do SEO when there are many stations have found that the label page also has rankings and very good, this is why? One of the reasons that the individual concludes is that the following articles in this tab are more or less relevant, or that there is a word appearing in the middle of these articles, And each page has the same label will point to the label page of the tag, so if the label appears 10 times, 20 times or more that the tag word is there are 10 or more of the site links to it? Baidu SEO Guide has mentioned in the chain can increase the weight so many pages point to the same page that the weight of the page? You can discuz the default is not to allow spiders to include the label page, and the title page of the label page is not very standard, so I want to change it.

Crack first Look at the default label page title format:

Tags-tag words-site name

Here we will modify the title, put the signature of the tag with-remove only the tag words with the station roll

First Open/source/module/misc/misc_tag.php

Find approximately 47 lines with the following code:

$navtitle = $tagname? $taglang. '-$tagname: $taglang;

We put the $taglang in it, so that the label in front of the title is gone, and then we take the '-' middle-remove, note-before and after the spaces are removed, leaving only the '

Remove the following code:

$navtitle = $tagname? $tagname: $taglang;

Then refresh the label page to see if it was successful, this method can be used for discuz! x3.1,discuz! x3.0,discuz! X2.5 has not done testing, pay attention to the changes before please back up the relevant documents, such as the need to let search engines included in the label page to modify other places this article does not tell.

This article by the Changsha 731 Forum original, the original address: http://www.731bbs.com/thread-167-1-1.html reprint please accompany the address.

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.