WordPress Learning Four: a simple custom theme

Source: Internet
Author: User

In the study Sanri analysis of an example, this section we will imitate him to do a simple bar, the focus is to call the WordPress encapsulated functions and classes, CSS and HTML can be slightly better adjusted.

Make a copy of the WP Belt example and re-name it.

Empties the file contents of index.php and Style.css. Modify the STYLE.CSS header as follows:

 /*  theme Name:simplicitytheme uri:https:/ /mxyb.net/author:ljwauthor URI:HTTPS://MXYB.NET/DESCRIPTION:TESTVERSION:1.5LICENSE:GNU general public License v2 or L Aterlicense Uri:http://www.gnu.org/licenses/gpl-2.0.htmltags:black, Brown, Orange, tan, white, yellow, light, One-column, Two-columns, Right-sidebar, Fluid-layout, Responsive-layout, Custom-header, Custom-menu, Editor-style, Featured-images, microformats, Post-formats, Rtl-language-support, Sticky-post, Translation-ready, Accessibility-readytext domain:twentythirteenthis theme, like WordPress, is licensed under the GPL. Use the it to make something cool, having fun, and share the what you've learned with others.  */ 
 while (Have_posts ()):    the_post ();    ? >    endwhile;?></body>

The above is the code of index.php, so a simple theme without a style is just fine.

If we are familiar with CSS and HTML, we can design the layout from the beginning. I'm not very good at this.

WordPress Learning Four: a simple custom theme

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.