I deleted page.tpl.php file from my current theme, and noticed that all content is still rendering in my Drupal site with a little difference in structure. What is the real use of this file? Can we have any alternative or a replacement for this file?
Default theme implementation to display a single Drupal page.
If Drupal is not able to find page.tpl.php file inside your theme, then it will use one of the following file:
- If your theme has Parent theme, then Parent theme page.tpl.php file.
- If no, file provided by system module.
The content would still be rendered because it uses the default template from Drupal core.
If you include (page.tpl.php) in your current theme folder, it would override the default (page.tpl.php) template.
Some useful links: