Provide zblog template_zblog them_wordpress template download and customization

Zblog adds the method of modifying website keywords (description, keywords) (Part 2)

Tianxing Studio 2013-06-05 04:13 course ten thousand three hundred and seventy-nine 0 Comments


In the previous article“ Zblog adds the method of modifying website keywords (description, keywords) (I) "This article introduces the keywords and description methods for modifying zblog homepage and list page. This article introduces the keywords and description methods for modifying zblog article page.

The template of the Chinese chapter page of zblog is "single.html". Please follow the steps below to open this file:

Click File Management ------ Open the zb_users folder ------ Open the THEME folder ------ Open the theme folder you are using ------ Open the TEMPLATE folder ------ Find the single.html file and open it.

The single.html file can be divided into two cases:

1. If you see it in this file <title><#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#></title> This line of code can be modified directly according to the following tutorial steps.

2. Many templates use the<# TEMPLATE_HEADER #>tag to call the header file. In this case, we need to open the currently used template header.html file, copy all of them, and then replace the<# TEMPLATE_HEADER #>of the single.html file.

Then follow the steps below to modify the keywords and descriptions of the zblog article page:

Find the title code, generally as follows:

<title><#ZC_BLOG_TITLE#><#ZC_MSG044#><#BlogTitle#></title>

Add keywords and descriptions below this line

Key notes : Since the keywords and descriptions on the article page cannot be the same for every article, the system tag should be called. The suggestions for adding keywords and descriptions on the zblog article page are as follows:

 <meta name="Description" content="<# BlogTitle #>is an article about<# article/tagtoname #>in<# ZC_BLOG_TITLE #>. Welcome to read and comment,<# ZC_BLOG_SUB_NAME #>"/> <meta name="keywords" content="<#article/tagtoname#>"/>

Explanation:

<# BlogTitle #>in the description is the article title, <#ZC_BLOG_TITLE#> Is the site title, <#article/tagtoname#> Is the name of the article category, <#article/tagtoname#>。

<# article/tagtoname #>in the keyword calls the keyword (tag) of the article

You can also change it into other tags according to your own needs. Don't forget to rebuild the file after modification.


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation