Home >Backend Development >PHP Tutorial >wordpress theme production structure file, wordpress theme structure_PHP tutorial
The following is the WordPress theme file hierarchy, which will tell you: When WordPress displays a specific page type, which template file will be used? Only by understanding the following theme hierarchy can you know what files you need to write for your WordPress theme.
Take the homepage as an example. There are two files home.php and index.php below. The WordPress program will search for these two files in sequence from your theme folder:
Article page:
For detailed instructions, please see WordPress official documentation: http://codex.wordpress.org/Template_Hierarchy
So everyone came up with the idea of modifying the existing theme or making a theme from scratch, but the question came again, how to make it? Making a theme requires writing code. Many netizens have never been exposed to programming, and most people get confused when they see the code. Tangcai Blog has started to write a series of basic tutorials on WordPress theme production. It will teach you step by step how to create a complete WordPress theme from beginning to end. I hope it will be helpful to everyone. However, my ability is also limited. This series of tutorials can only give you a preliminary understanding of the theme production process, but it does not allow you to fully grasp the essence of WordPress themes. This series of tutorials is suitable for the following people: those who know a little bit of HTML and CSS but don’t know how to write PHP code; those who have written simple HTML codes by themselves and can design web interfaces, want to know how to make WordPress themes and know a little about PHOTOSHOP or FIREWORKS Friends who simply process images. This series of tutorials is not suitable for the following people: Friends who don’t plan to write code, don’t want to follow this tutorial step by step, but just want to see it. Friends who don’t have any web design knowledge are very familiar with the WordPress theme creation process. Friends don’t need to read it. After reading this series of tutorials, you will gain: Understand the general steps of making WordPress themes, understand how to modify WordPress themes, and extend the functions of themes. To make themes, you must be equipped with the following tools: WordPress local running environment (or Online website space), and WordPress has been installed; equipped with various browsers, Internet Explorer, Sogou, Mozilla Firefox, Google Chrome, 360, used to test whether the web page is displayed normally, because you don’t know what the person viewing your web page is using What browser? A text editor is used to write code, such as Dreamweaver, UltraEdit, etc. Notepad is not recommended. For specific reasons, click here to view "Reason for not using Notepad to write web page code" Image processing software: PhotoShop or Fireworks WordPress theme production process list : How to make a WordPress theme (2): Theme file structure
That style file is not required in the theme, it may be related to theme development.