1.01 Theme Files - andperry256/my-base-theme-and-dbadmin GitHub Wiki

My Base Theme - Files

This page gives a brief description of the files within the theme that either differ from or are additional to the standard files imported from the Underscores theme.

footer.php

If a custom footer script exists for the given page (see My Base Theme) then this will be loaded.

header.php

The following points are to be noted:-

  • A global variable for "link version" is set up.This is set by default to "yymm01" where "yymm" is the year and month of the current date, unless it has already been set to a later date in the child theme. This is used in stylesheet references to force periodic refreshing of the browser cache.
  • An additional <div> super_container is wrapped around the whole page and can be used for example to set the maximum width of the site.
  • Any header image file detected during page load (see My Base Theme) will be displayed.
  • The output of the page title in the header is suppressed.
  • The ID of the menu established during the page load (see My Base Theme) will be used.

page.php

The custom page script will be loaded if present. Otherwise the standard WordPress loop is executed.

shared/functions.php

Please see the separate sub-section for this file.

shared/setup_params.php

This file contains the code for executing the various page load operations as described in My Base Theme.