Areas

We use the following area names in our default themes. Names in italics are what should be used (text after the bolded names describe exactly what this area typically contains.)

  • Header Nav - This area holds the header autonavigation block. This is typically the "top level" pages on a site.
  • Header - This area holds the header image.
  • Main - This is the template's main content area.
  • Sidebar - This area is present if the template contains a sidebar.

Adding areas:

If you find you need an additional area in your template, feel free to add one. However, if your area is semantically connected to any of the above, you should name it as {Area Name} {Number}. So, if you're adding a second main content area - for perhaps a second main column that is separate from a sidebar - name that area "Main 2".

Templates

The following templates are included in the stock C5 themes. If you include new template files, C5 will offer to automatically create page types from them - but if you reuse the ones that ship with C5 it will be easier to switch between your theme and others.

  • default.php - This template is required. All themes must include it, as it will be used if a particular page type does not have a corresponding theme in your template.
  • view.php - This template is not required but encouraged. This will likely be similar to default.php but should contain this code below inside it. This is used for single pages.

        <?php print $innerContent; ?>
  • left_sidebar.php - For pages where the sidebar is on the left.

  • full.php - For pages where there is no sidebar.
  • home.php - A specific home page template.

Recent Discussions on this Topic

How To Reload A Theme During Development

I'm just starting to develop a theme. I guess there must be some way to reload a theme completely as I iterate through the development process but I can't see it. Once you hit install theme it appears to embed itself into the installation. Page types I've…

Modifying Theme Colors

I've been trying for two hours to modify the background color of my page's theme. The tool seems to have no effect, even in the tool window. Do I have to learn HTML?

broken link

link to site_theme_paths.php info (#2) is a broken... http://www.concrete5.org/documentation/developers/pages/themes Do I post that here?

Modifying PHP and applying it to a theme after it's been activated

Hi, I not too long ago converted a client's site and applied Concrete5 to it. The site has a left side menu that's embedded in the theme so the no one can change that. The client recently asked us to add another item to the menu. I've gone in the php f…