This topic contains 3 replies, has 1 voice, and was last updated by  Ваш Банкир 4 years, 7 months ago.

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

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

    #1514

    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

    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

    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.