Book Image

WordPress 4.x Complete

By : Karol Król
Book Image

WordPress 4.x Complete

By: Karol Król

Overview of this book

<p>With WordPress, anyone can build an optimized website with the least amount of effort possible and then make it available to the world in no time.</p> <p>This book will serve as a practical guide for everyone who intends to become an online publisher, website owner, or even a website developer. Beginning with the basic features of WordPress, the book lays a solid foundation to deal with advanced and complex features. It then moves on to helping you choose and install various themes.</p> <p>Gradually, with increasing complexity, the book goes into the development of your own themes, acting as a beginner's guide to theme and plugin development.</p> <p>Concluding the learning curve with miscellaneous tasks such as community blogging and administrating the established site, this book empowers you with the ability to maintain your site.</p>
Table of Contents (20 chapters)
WordPress 4.x Complete
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Some not-design-related theme basics


Let's take a quick look at some factors to consider when choosing and installing themes, just so that you'll be better informed.

The structure of a theme

A WordPress theme is actually a collection of files in a folder/directory. There are no special or unusual formats, just a few requirements for those files in the theme folder. The only requirements for a folder to be a valid WordPress theme are as follows:

  1. It should have a style.css file and an index.php file.

  2. The style.css file must have the basic theme information in its first five lines.

There are a number of additional files that you'll find in most theme folders. They are as follows:

  • A screenshot.png file that is the little thumbnail that shows what the theme looks like

  • An images folder where all images associated with the theme live

  • A variety of files that are used for different purposes (for example, header.php, footer.php, page.php, single.php, archive.php, and so on)

    Note

    To learn more about the structure...