Zen subthemes, by default, use the page, node, and other template files directly from the base theme. In other words, we do not need to specify template files in our myzen theme unless we are looking to change the template.
In this recipe, we are going to override the base theme's page.tpl.php
template file with our own copy and make changes to it. As an example, let us see whether we can reposition the status messages element which is usually represented by the $messages
variable.
The following steps outline the procedure to import a template file from the base theme to the subtheme:
1. Navigate to the
sites/all/themes/zen/templates
folder that contains the default templates.2. Copy the
page.tpl.php
file.3. Paste it into the equivalent folder in the subtheme, namely,
sites/all/themes/myzen/templates
.4. Within the subtheme, open this file...