WordPress Learning-themes-001,-themes-001
This article is mainly to record the content of WordPress theme. On why to write their own WordPress theme reasons, I believe we all have their own experience. Want to make your blog more prominent? More personal words? The compilation of WordPress theme is one of the reasons why WordPress is so popular. Because there are at least hundreds of thousands of people who write professional theme online. In other words, it provides hundreds of thousands of of job opportunities. More Daniel by writing professional WordPress theme harvest million assets (each year), it is very fruitful. So we must write good WordPress theme.
So how to write WordPress theme need that knowledge? First of all, you have a better web interface, this of course, the first design tools (such as PS) to design. So if you have an art, and this artist at least understand the current development trend of the site, now the most popular is what (CSS3 in the gradient, transparent, etc.). Then it is converted to HTML and then converted from HTML to theme.
Theme should contain the following content:
Widgets's support.
Widgets is a small part of WP (add-on), he is generally used in sidebar or footer. such as calendars.
comments and support for references. As for the reason this rookie will not say more, I believe we all know. The design of the application is very necessary. Can be more beautiful.
and the Avatar support. This is very interesting, in the Gavatar can be uploaded up, mainly through email registration, and then you can upload, and then through the WP in the Get_avatar ($email, "80") to obtain (can be in the widget or plugin hunt).
Custom Post types support . This feature of the novice think that WordPress is one of the most important functions of CMS, he can make your interface more flexible to use in the CMS, not just blog, but also your website more personalized words. You can say so. With custom post types, you can support the design of all website structures (developed using WP).
Theme Framework content includes:
header.php-----------header file with Get_header () to call, with the hook, is also add_action ("Wp_head", "yourfunctionname");
single.php----------a single blog page.
search.php----------Search.
sidebar.php----------called with Get_sidebar ().
footer.php-----------get_footer () call, of course, you can add content with widgets
page.php------------A single page to differentiate post.php
index.php----------level comparison of the bottom of the page, if the above file does not exist, call it. Details to participate in Codex WordPress
image.php-----------image;
functions.php----------function.
author-bio.php------------Author Introduction
archive.php----------Archive.
comments.php----------Reviews.
content.php----------content.
content-search.php----------content retrieval.
content-page.php-----------content page
content-none------------no content
Content-link----------content links.
404-link----------404.
........................
The last part is the function of the blog options
Can change the tone of the blog, logo, Favicon and so on.
http://www.bkjia.com/PHPjc/947740.html www.bkjia.com true http://www.bkjia.com/PHPjc/947740.html techarticle WordPress Learning-themes-001,-themes-001 This article is mainly to record the content of WordPress theme. On why to write their own WordPress theme reasons, I believe that everyone has their own body ...