High end responsive website template

Responsive web design, open source code, permanent use, unlimited domain name, unlimited number of uses

ECS 2 folded

How to modify zblog theme template file

I believe webmasters are using Template construction There is a need for personalized template modification, but most webmaster friends will always have various ineffectiveness after modification. What's the reason? Let's talk about the correct posture of modifying the zblog theme template. In fact, the key problem is nothing more than the following four steps. other Station construction The method of program modification is the same.

1. Find the template file path

In fact, this is a very embarrassing question. Many uses Zblog template 40% of users often come up to the question: "I modified it according to the method you gave me, why didn't it change after the modification?" Of course, it didn't change when you changed the wrong location.

The only template file path of zblog is:/zb_users/theme/topic ID/template/xxx.php

The only path of template style (css) is:/zb_users/theme/theme ID/style/xxx.css

2. Modify Theme Template File

Some webmaster friends know the path of the template file, but there are too many php files under the template folder to distinguish who is who. Here are some common rules to share:

  1. Header.php public header file

  2. Footer.php public tail file

  3. Main template file of index.php homepage and list page

  4. Post-multi.php Summary Article Template

  5. Post-istop.php Top Article Template

  6. Pagebar.php Page Bar Display Template

For more details, see: Z-BlogPHP template file and template tag

3. Update site cache

The website building programs on the market basically have their own set of caching mechanisms. After modifying the template file, the theme template needs to be recompiled to take effect. The zblog update caching method is very simple. You can see the [Clear Cache and Recompile Template] button on the home page of the website background, and click it once. As shown below:

 Frequently asked questions about how to modify zblog theme template files

4. Update browser cache

If you modify the CSS style sheet of the template, then you do not modify the php file at this time, you do not need to clear the cache in the third step. If your browser has enabled the cache mechanism at this time, the static files (such as css and js) you have visited before will be cached by the browser. If you want to see the modification effect immediately, You need to clear the browser cache of the current site. The fastest way is: Ctrl+F5 (force the browser to refresh).

Related news

Website Style

contact us

thirteen billion nine hundred and twenty-two million one hundred and nine thousand five hundred and seventeen

seven hundred and forty-nine million eight hundred and forty-three thousand four hundred and eighteen

kehu56@126.com

:9:30-22:30

 QR code