Wordpress learning-themes-001

Source: Internet
Author: User
: This article mainly introduces wordpress learning-themes-001. For more information about PHP tutorials, see. This article mainly records the content of wordpress theme. I believe everyone has their own experiences on the reasons for writing wordpress theme on their own. Want to make your blog more prominent? More personalized words? Writing wordpress theme is one of the reasons why wordpress is so popular. Because the number of professional theme writers on the Internet is at least several 100,000. That is to say, it provides hundreds of thousands of jobs. By writing professional wordpress theme, you can find millions of assets each year. Therefore, we must write wordpress theme.

What is the knowledge required to write wordpress theme? First of all, you need to have a better web interface. of course, you must first design it with a design tool (such as ps. So if you have an artist, and the artist knows at least the development trend of the current website, what is the most popular now (gradient and transparency in css3 ). Then it is converted to html, and then converted from html to theme.

Theme should include the following content:

Widgets support.

Widgets is some add-on components in wp. it is generally applied to sidebar or footer. For example, calendar.

Comments and references are supported. As for the reason, Cainiao won't talk much about it. I believe everyone knows it. Application Design is very necessary. It can be more beautiful.

There is also support for portraits. This is very interesting. it can be uploaded in gavatar, mainly through email registration, and then upload, and then through get_avatar ($ email, "80") in wp ") (This can be obtained in widgets or plugin ).

Support for Custom Post types. This feature is regarded by Cainiao as one of the most important features of cms in wordpress. it allows your interface to be used more flexibly in cms, not just in blogs, and your website is more personalized. With Custom post types, we can support the design of all website structures (developed using wp ).

The Theme framework includes:

Header. php ----------- The header file is called using get_header (). If hook is used, it is also add_action ("wp_head", "yourFunctionName ");

Single. php ---------- single blog page.

Search. php ---------- search.

Sidebar. php ---------- is called using get_sidebar.

Footer. php ----------- get_footer () call. of course, you can use widgets to add content.

Page. php ------------ a single page, used to distinguish post. php

Index. php ---------- page with a relatively low level. if the above file does not exist, call it. Participate in codex wordpress for details

Image. php ----------- image;

Functions. php ---------- function.

Author-bio.php ------------ introduction by the Author

Archive. php ---------- archive.

Comments. php ---------- comment.

Content. php ---------- content.

Content-search.php ---------- content retrieval.

Content-page.php ----------- content page

Content-none ------------ No content

Content-link ---------- content link.

404-link ---------- 404.

........................

The last part is the blog option (options) function.

It can change the color, logo, and favicon of a blog.

The above introduces wordpress learning-themes-001, including some content, and hope to be helpful to friends who are interested in PHP tutorials.

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.