Zblog setting methods and Optimization Techniques

Source: Internet
Author: User

Question 1: how to remove the title of the latest zblog article from a long term
Analysis:
When publishing an article, it is inevitable that some titles are too long. This will display two lines in the zblog sidebar, resulting in the inconsistency of the entire webpage. How can we control the length of the title words?
Method:
Modify the code in CSS. First, open the CSS file under the template style and insert the following code:

****************/
# Ulprevious Li {
Width: 180px;
White-space: nowrap;
Word-break: Keep-all;
Overflow: hidden;
Text-overflow: ellipsis;
}
Width: 180px is the length of the title to be displayed. You can modify it according to your template.

Question 2: How do I add a copyright link to zblog?
Analysis:
In order to prevent others from copying the content of your website, the copyright information of your website will be automatically copied together during the copy process, which also enhances the publicity of the website.
Method:
Add the following code to the B _article-single.html file of zblogblog:
<Br/> <SCRIPT type = "text/JavaScript"> <br/> document. body. oncopy = function () {<br/> event. returnvalue = false; <br/> var T = document. selection. createRange (). text; <br/> var S = "This article comes from <# zc_blog_title #> <# zc_blog_host #>. Original address: <# Article/URL #> "; <br/> clipboardData. setdata ('text', '\ r \ n' + T +' \ r \ n' + S + '\ r \ n \ r \ n '); <br/>}< br/> </SCRIPT> <br/>

Question 3: how to remove the document numbers in the category directory?
Analysis: Some friends classify directories for a long time, and then display the number of articles in the directory, is there any way to remove the following number?
Method:
It's easy, just a piece of code is enough.
Add the following content to the themes/qeeke/style/qeeke.css style sheet:
. Article-nums {
Display: none ;}
Finally, rebuild the file.

Question 4: How can I remove the "Last edit" on the message board?
Analysis: When you want to edit some messages on the message board, you may see the last such sentence edited by XX after editing. It doesn't feel necessary. How can this problem be solved?
Method:
Open FTP and find language/simpchinese. asp in the root directory of the space.

Delete % s from % s in msg273 = "Last modified by % s. Remember to leave "" Before file reconstruction will take effect

Question 5: How can I enable zblog to search for only the title of an article without the full text?
Analysis: You should know that zblog searches the full text by default. Sometimes you feel that it is unnecessary to search only the title. What should you do?
Method:
Modify the code and run the following command in the c_system_lib.asp file:
Objrs. source = objrs. source & "and (instr (1, lcase ([log_title]), lcase ('" & strquestion & "'), 0) <> 0) or (instr (1, lcase ([log_intro]), lcase ('"& strquestion &"'), 0) <> 0) or (instr (1, lcase ([log_content]), lcase ('"& strquestion &"'), 0) <> 0 ))"

Replace:
Objrs. source = objrs. source & "and (instr (1, lcase ([log_title]), lcase ('" & strquestion & "'), 0) <> 0 ))"

Question 6: how to delete the trackback reference address for obtaining the log?
Analysis: at the bottom of the article, you will see the phrase "trackback reference address of the log". Some friends don't want it and want to remove it. What should I do?
Method:
Open the B _article-single.html file, and then delete the following code.
<A href = "<# Article/pretrackback_url #>" target = "_ blank"> <# zc_msg232 #>

Question 7: How does zblog remove the tags tag at the bottom of the article?
Analysis: When you browse the article, you will find that there is a column named tags, some friends want to remove it, and the page looks concise. What should we do?
Method:
In fact, we don't need to remove tags, we just need to hide it, so that it is more convenient to implement when necessary, we only need such a piece of code
Body. multi Div. Post. Post-tags {
Display: none;
}
Remember to insert it to the CSS file in the template.

Question 8: how to add a meta tag to zblog?
Analysis: we add meta tags to zblog to better optimize our zblog to achieve ranking optimization, so that the search engine can better search for you.
Method:
To add a meta tag, use NotePad to open the corresponding page and then add the meta tag between 1.add the meta tag to default.html:
<Meta name = "Description" content = "describes the description of your blog in quotation marks. Your blog description will appear during Google Search"/>
<Meta name = "keywords" content = "Describe your blog keyword in quotation marks"/>
2.add the meta tag to single.html:
<Meta name = "Description" content = "<# zc_blog_title #> <# zc_ms000044 #> <# blogtitle #>"/>
<Meta name = "keywords" content = "<# blogtitle #>, <# Article/tagtoname #>"/>
Meta tag Note: <# zc_blog_title #> is the blog title, <# zc_ms000044 #> is "-", and <# blogtitle #> category is the name of the relevant category, <# Article/tagtoname #> is the tags of the article.
3.add the meta tag to catalog.html#tags.html:
<Meta name = "Description" content = "<# zc_blog_title #> <# zc_ms000044 #> <# blogtitle #>"/>
<Meta name = "keywords" content = "<# blogtitle #>, blog"/>
4.add the meta tag to search.html:
<Meta name = "Description" content = "<# zc_blog_title #> <# zc_ms000044 #> <# blogtitle #>"/>
<Meta name = "keywords" content = "search, <# zc_blog_title #>"/>

Question 9: How can I add a full-text link for zblog articles?
Analysis: zblog does not read the full-text link by default. How can we add a full-text link for reading the article to facilitate our reading?
Method:
Open the B _article-multi.html file and add the following content under the <Div class = "post-Body"> <# Article/intro #> </div> code:
<A href = "<# Article/URL #>"> read the full text </a>.

Question 10: How does zblog implement static log directory configuration and file reconstruction settings?
Analysis: if our webpage is dynamic, we need to convert the dynamic webpage into a static one, which is conducive to search engine crawling and ranking optimization, how can we configure static log directories?
Method:
1. first, go to the background and find the static log directory configuration and file reconstruction item in website settings management, then, select "generate category and static homepage archived on a monthly basis" and "anonymous anti-question category and static homepage archived on a monthly basis ", change the "Custom category and static homepage configuration for monthly Archiving" parameter to "{% Category % }".
2. Customize static log directory URL static Configuration
Check "enable custom static log directory function" and "enable static log hiding and anti-question function ", change the "Custom static log directory configuration" parameter to "{% Category %}/{% alias % }".

My zblog: http://www.tao36524.cn/welcome.

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.