Home Forums Template Files Basic Templates

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1513
    Crumina team
    Keymaster

    At the very minimum, a WordPress Theme consists of two files:

    #1514
    Crumina team
    Keymaster

    style.css
    index.php
    Both of these files go into the Theme directory. The index.php template file is very flexible. It can be used to include all references to the header, sidebar, footer, content, categories, archives, search, error, and any other page created in WordPress.

    #1515
    Crumina team
    Keymaster

    Or, it can be divided into modular template files, each one taking on part of the workload. If you do not provide other template files, WordPress may have default files or functions to perform their jobs. For example, if you do not provide a searchform.php template file, WordPress has a default function to display the search form.

    #1516
    Crumina team
    Keymaster

    Typical template files include:

    comments.php
    comments-popup.php
    footer.php
    header.php
    sidebar.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.