wordpress theme production structure file, wordpress theme structure_PHP tutorial

WBOY
Release: 2016-07-13 10:18:40
Original
1231 people have browsed it

wordpress theme production structure file, wordpress theme structure

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.

How do you see the file hierarchy below?

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:

Homepage

Article page:

Page

Category

tag

Author

Date page

Search results

404 (Not Found) Page

Attachment page

For detailed instructions, please see WordPress official documentation: http://codex.wordpress.org/Template_Hierarchy

How to make a WordPress theme (1): Basic preparation

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

What is this file in the WordPress theme file package used for?

That style file is not required in the theme, it may be related to theme development.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/880674.htmlTechArticlewordpress theme production structure file, the following wordpress theme structure is the WordPress theme file hierarchy, it will tell you: When WordPress Which module will be used when displaying a specific page type...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template