Let's install our theme in a site and test it. Perform the following steps:
You uploaded your theme to a fresh WordPress installation and tested it. Hopefully, it's all working ok—well done!
You've already learned about the Theme Review guidelines earlier in this chapter, but if you want to submit your theme to the theme repository, you'll also need to make sure it passes the Theme Unit Test.
As part of the theme review, the Theme Review Team will run tests on your theme, known as the Theme Unit Test (http://codex.wordpress.org/Theme_Unit_Test). You can do this yourself for your own theme to test it. To do so, you follow a few steps:
to your theme
.wp-config.php
file in your WordPress installation, set WP_DEBUG
to true
, using the instructions at http://codex.wordpress.org/WP_DEBUG.Try doing this for your theme—it helps to know if your theme will pass before you submit it, and is a useful way to learn about the standards required for themes listed on the WordPress website.
Q1. What license should a WordPress theme have to be accepted to the theme repository?
Q2. Where do you place information that will be displayed in your theme's listing on the Themes admin screen?
functions.php
<head>
tag of header.php
style.css
Q3. What type of file should you upload to the WordPress theme submission page?
README.TXT
fileQ4. What is the Theme Unit Test?