How to add description for Zblog each page

Source: Internet
Author: User
Keywords Seo zblog

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

Zblog a good website template, at present our company has two websites ("17881.html" > Chat robot "http://im.abot.cn" and "mass mailing" http://qunfa.abot.cn) are using this template, Maintenance and modification are very convenient. However, to use Zblog to obtain a better SEO effect, targeted modification is necessary. As for how to put the title of the article before the skills, we do not repeat here, a lot of online, Baidu can be, of course, if you do not understand, you can consult our company's seoer. Here's what I've done. By modifying, the Description field of each article page of the content page automatically reads the tips of the article.

We know that the article in Zblog is an introduction to HTML tags, you can define the text color, size, and so on, or even define a table, this information if placed in the meta description tag, will have disastrous consequences, so the first step, Filter out the labels first. This is not difficult, Zblog provides a ready-made function transferhtml, as long as the call can be.

Again is to control the length of description content, the general search engine optimization recommended this article not more than 200, we can set to 190. That is, the contents of the transferhtml after the interception, VBScript has ready-made functions, compared to everyone knows, is left.

The final step is to put the good content into the template, where we need to add a new tag, I set the Article/intro_text. So in the single.html file in the template directory, the head joins:

<meta name= "description" content= "< #article/intro_text#>"/>

So far, the optimization is complete. The first and second steps are to modify the Function\c_system_lib.asp code as follows:

Arytemplatetagsname = "Article/intro_text"
Arytemplatetagsvalue (=left) (Transferhtml (Htmlintro, "[nohtml]"), 190)

As for the effect, we can go to the "mail mass" this site to see.

It should be noted that similar issues have been mentioned before in the Forum, the general solution is mainly two kinds:

Add the following code to the single.html file

<meta name= "description" content= "< #BlogTitle #>" >

This generated Web page description and text title, as SEO, this effect is certainly unacceptable.

Second, that the control of the content of the article, to ensure that no HTML tags, or in the single.html file to add the following code, just to change the label.

<meta name= "description" content= "< #article/intro#>" >

If there is a fckediter automatically added HTML tags, for a Web page, is also a disastrous effect, we should be careful to use.

SOURCE Http://www.qunfa158.com Original Post 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.