If you are interested in WordPress development, you may just try to customize your own theme in a customization program to configure options or create more complex custom subtopics. WordPress Codex said: \
In this tutorial, you will go directly to topic development. You can start with the default file that makes up the topic, continue with templates, template tagging, and looping, and display posts on individual pages, archives, and other pages. After this story, you can create your own topic. Note: for this series, you must fully understand HTML and CSS. Because both languages are necessary building blocks to use WordPress. Let’s go. Have you missed the word press development series for beginners? You can view all 5 posts here. The
Developing WordPress for beginners: developing WordPress for beginners: developing WordPress for beginners learning PHP: developing WordPress for beginners building topics: developing WordPress for beginners building components and menus: before starting to build programs, the localhost environment should be set on the computer where WordPress is started and running . Otherwise, review part 2 of this series and scroll down for more information. If you are going to continue, the first thing you need to know is where WordPress saves the theme. Topics are usually found in the installed WP content \/ themes directory. If you navigate to this folder in the localhost environment, you may already have several default word press themes. WP config You can use commands in the PHP file to change the location of a topic, but they are rarely executed. The
Let’s create a new theme. This requires some very simple tasks. Create a new folder in the \
After accessing the shapes > themes section, you can now view and activate themes in the list. The theme has no code yet, so the front end only displays a white screen. But I will change soon! Our new empty theme template works the word press theme works with a template file. This is actually an original approach because it greatly reduces the number of files required to run the web site. If there is an HTML site, you need to publish a file for each article. Each file contains the title, sidebar, and footnote of the site, which are the same for each file. Unlike file 2, the knight
. If you create a theme for the word press theme directory when introducing image themes, you must use cc0 images. This is a \
After finding a satisfactory image, cut it into 880px wide and 660px high, and name it screenshot. PNG and place it in the topics folder. To serve as an example in cases where quick modifications are required, we created the following images. Images can be ed here. If you are curious about the screenshot preview of the theme, the color coverage is based on Pantone’s 2016 color (there are actually two colors this year). I like them very much! The background image is Tim swaan of unsplash. The next step is to create an HTML framework for the theme. This includes code loaded into all pages, such as HTML head elements, DOCTYPES, and so on. The first is the title Let’s create a PHP file. In this file, paste the beginning of the HTML code as follows: Footer, containing the closing label of the opening element in the concave 3daf60076c594afa6bb8 rod. Create the PHP file and complete. In the important 3daf60076c594afa6bb8 pole, it is necessary to point out two important functions: wp\u head() and wp\u footer(). During the navigation hook, the next week’s tutorial in this series will discuss these functions of parts and menus, but now remember that each time you create a topic, you must put wp\u header () before the end tag of the head element. Immediately before the closed body tag is wp\u footer (). This helps word press and plug-ins insert features into themes. Now it’s index I will pay close attention to PHP. In this step, an empty screen will appear when you visit the web site. Because the index file is empty and no header and footer files are used. Change. Add the following to the index file: 3daf60076c594afa6bb8 is loading. If you load the page now, the text \