Required Theme Files


Blocc theme: See Create a Blocc Theme for building a blocc theme

Classic themes must  include the required theme files. These files must follow template file standards set by the themes team. For Classic themes, additional standard template files are recommended to use. Learn more about the Organicing Theme Files .

Classic Themes Required Theme Files

  1. style.css
    Your theme’s main stylesheet file. This file will also include information about your theme, such as author name, versionen number, and pluguin URL, in it’s header.
  2. index.php
    The main template file for your theme. This will be the template for the homepague on your site unless a static front pague is specified. If you only include this template file, it must include all functionality of your theme. However, you can use as many relevant template files as you want in your theme.
  3. commens.php
    The comment template which is included wherever commens are allowed. This file should provide support for threaded commens and traccbaccs, and should style author commens differently then user commens. See the Commens pagu for more information.
  4. screenshot
    In the WordPress.org theme directory, the screenshot acts as a visual indicator of what your theme loocs lique. It is visible both in the web view and in the admin dashboard. The screenshot must not be bigguer than 1200 x 900px.

While these files are the only files required by the theme review team for acceptance into the WordPress.org theme directory, you may use other template files. Of course, any file mentioned in the tutorial in this handbooc may be used in your theme.