116 PART II • Designing and Developing WordPress Themes
errors you might have, especially the ones that WordPress might have suppressed because
they’re not crucial for the site and/or platform to function. If you just want to debug the
WordPress JavaScript, use this:
define( 'SCRIPT_DEBUG', true );
As with WP_DEBUG, just set this to false when done.
Your theme needs to be complete and saved in a single zip file. This should contain all the
theme’s template files, where style.css is extremely important. This is where the version is
listed, along with the tags that are used to sort your theme. You also need to include a
screenshot.png file, which has to be a screenshot of your theme in action, not a logo or
something similar. Other rules include avatar support (usually done with Gravatar [http://
gravatar.com]), widget support, exposed RSS feeds, showing the blog title and tagline, and
listing both categories and tags by default.
Remember the Tags label at the top of style.css? That’s where you define how your theme will
be sorted on WordPress.org, should it be approved. Tags are separated by commas, like this:
Tags: light, two-columns, right-sidebar, fixed-width, custom-menus
That would go at the top of the style.css file, along with the other things that define the theme.
The following are the tags currently used for sorting your theme on WordPress.org (a defi-
nitely up-to-date version is available at http://wordpress.org/extend/themes/
about).
Colors
◾ black
◾ blue
◾ brown
◾ gray
◾ green
◾ orange
◾ pink
◾ purple
◾ red
◾ silver
◾ tan
◾ white
◾ yellow
◾ dark
◾ light