WordPress Learning-themes-001

Source: Internet
Author: User
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-----------head 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.

The above describes the WordPress learning-themes-001, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.