Provide zblog template_zblog them_wordpress template download and customization

How to modify the zblogphp template?

Tianxing Studio 2014-11-15 20:08 course forty-three thousand three hundred and eighty-three 13 Comments


This is an introduction“ zblogphp ”For the template modification tutorial of ZBlogasp, please see the previous tutorial of this site“ How to modify the zblog theme? Zblogasp topic modification method

Since the file management plug-in has not been released in the zblogphp version for the time being, template files cannot be modified directly in the background of zblog. Tianxing Studio recommends that you use ftp upload software to directly edit and modify the template file. You can download the template file locally and then modify it. However, you must pay attention to that the code of zblog is utf-8. Don't make a mistake when editing locally.

Let's talk about how to find template files.

There is an "Application ID" on the interface where you download and install the theme. The screenshot is as follows:

 How to modify the zblogphp template

Taking this theme as an example, if the theme ID is "hhcms", then the path of the theme template file is "zb_users/theme/hhcms/". When we open this folder, we will see several folders as shown below:

Template: template directory, where template files are stored  

Compile: the folder where the template is stored after compilation;

Script: the folder where the js file used by the theme is stored;

Include: the folder where the theme needs to call the file;

Style: the folder where the pictures and css files used by the theme are stored;

The template files we need to modify are placed in the "template" folder. It is important to note here that many friends directly modify the template files in the "compile" folder. The files in this folder are invalid. After the modification, they have been updated in the background and all have been restored, because this folder is used to store "template" The template in the file is compiled.

Therefore, remember that the template of the zblogphp theme can only be changed in the "template" folder.

Now that you have found the template file, let's understand the corresponding role of the template:

  1. Header.php header template

  2. Footer.php bottom template

  3. The index.php homepage and list page share the same template file (for some topics, the homepage and list page templates will be separated, so index-s.php and index-list.php templates will be added. Note that the file names of each topic may be different)

  4. Post-multi.php Summary Article List Template

  5. Post-istop.php Top Article List Template

  6. Post single.php Log Page Article Template

  7. Post-page.php independent page content template

  8. Single.php log page main template file

  9. Comments.php main comment template

  10. Comment.php Display template for each comment

  11. Commentpost.php Comment sending form template

These are the files in general. Some themes will add many other templates in order to achieve some complex effects. At this time, we need to judge or consult the theme author.

Find the corresponding template file, and we can modify it according to our needs. I wish you all success. Well, if there is anything unclear, you can leave a message at the bottom of the page. If you have time to answer the question, you can also contact our online QQ: 1109856918 to inquire about zblog template customization and imitation.


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

yes thirteen Comments from netizens:

  •  Netizens of Tianxing Studio

    Netizens of Tianxing Studio Six years ago (2018-11-19) reply

    I finally found the file description tutorial. I don't know which one is which if I want to change the code

  •  Netizens of Tianxing Studio

    Netizens of Tianxing Studio Six years ago (2018-05-08) reply

    Brother, how can the top articles not display thumbnails?

  •  HR HR Case Network

    HR HR Case Network 8 years ago (2016-11-23) reply

    Hopes more CMS templates can be produced

  •  Pocket composition pocket gentleman

    Pocket composition pocket gentleman 8 years ago (2016-06-02) reply

    Zblog is a bit difficult to use.

  •  Search blog

    Search blog Nine years ago (November 29, 2015) reply

    At this point, I think zblog is no more convenient than wp

  •  Brother Jiu

    Brother Jiu Nine years ago (October 24, 2015) reply

    stationmaster. May I change the color of the website? It is also the Beijing color of the head navigation bar. Which code should be in header.php? That represents color. Thank you, webmaster

    •  Tianxing Studio

      Tianxing Studio Nine years ago (October 26, 2015) reply

      It has nothing to do with the head. To change the color, please go to the CSS.

      •  Brother Jiu

        Brother Jiu Nine years ago (October 26, 2015) reply

        Thank you very much. Find the CSS file, which represents the color section, and you can adjust it freely. You are too powerful, stationmaster To make a bow

  •  Brain essence network welfare

    Brain essence network welfare Nine years ago (2015-07-12) reply

    Hello, how to define how many log links are displayed in the list template? Where is the quantity limited?

    •  Tianxing Studio

      Tianxing Studio Nine years ago (2015-07-12) reply

      This question Background website settings -- Page settings -- Number of articles displayed on the home page and category page. Is zblog so hard to use?

  •  Idu Blog

    Idu Blog Nine years ago (2015-07-05) reply

    Please tell me how to make the thumbnail display proportionally instead of stretching according to a fixed size.

  •  Netizens of Tianxing Studio

    Netizens of Tianxing Studio Nine years ago (2015-07-04) reply

    Brother's tutorial is very useful!

welcome you Comment: Cancel Reply

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