WordPress theme Making structure file, WordPress theme Structure
The following is the WordPress theme file hierarchy, it will tell you: when WordPress displays a specific page type, which template file will be used? Only by understanding the following topic hierarchies can you know exactly what files your WordPress theme needs to write.
How do you see the file hierarchy below?
For the home page, for example, here are 2 files home.php and the Index.php,wordpress program will look for these two files from your theme folder:
Home
Article page:
Page
Classification
Label
Author
Date page
Search results
404 (Not found) page
Attachments page
For more information, please see the official WordPress document: Http://codex.wordpress.org/Template_Hierarchy
How to make WordPress theme (i): Basic preparation
So the idea of modifying an existing theme or creating a theme from scratch has come up, but the question is again, how do you make it? The theme is the need to write code, many netizens have not touched the programming, most people see the code on the head big. Soup of the blog to start writing a WordPress theme series of basic tutorials, will teach you how to make a complete WordPress theme, hope to help everyone. But my ability is limited, this series of tutorials can only give you a preliminary understanding of the theme of the production process, and does not allow you to fully grasp the essence of WordPress theme. This series of tutorials is suitable for people who understand a little bit of HTML, CSS knowledge but do not know how to write PHP code of Friends; I have written a simple HTML code yourself will design the Web interface, Want to learn how to make a WordPress theme to learn a little Photoshop or fireworks simple processing pictures of friends This series of tutorials is not suitable for the following people to read: Do not intend to write code, do not want to follow this tutorial step-by-step operation, Just want to see friends without any web design knowledge friends are very familiar with the WordPress theme making process of friends also no need to read this series of tutorials, you will reap: Understanding WordPress Theme production of the approximate steps to understand how to modify WordPress theme, And the theme of the extended theme, must be equipped with the following tools: WordPress local operating Environment (or online site space), and has installed WordPress, with a variety of browsers, Internet Explorer, Sogou, Mozilla Firefox, Google Chrome, 360, is used to test whether the Web page is normal, because you don't know what browser the person who is looking at your Web page is, and a text editor is used to write code, Dreamweaver, UltraEdit, and so on, and it is not recommended to use Notepad for specific reasons. Reasons to write web code without notepad "picture processing software: Photoshop or Fireworkswordpress theme making whole process list: How to make WordPress Theme (ii): Theme file structure
What does this file do with WordPress theme files?
The style file is not required in the topic, and may be related to topic development.
http://www.bkjia.com/PHPjc/880674.html www.bkjia.com true http://www.bkjia.com/PHPjc/880674.html techarticle WordPress Theme Structure file, wordpress theme structure below is the WordPress theme file hierarchy, it will tell you: when WordPress display a specific page type, which module will be used ...