- You will create two files header.php and footer.php.
- Create a folder “include” in your theme directory.
- Suppose that your theme directory is “aviweb” sites/all/themes/aviweb. Put header.php and footer.php file in “sites/all/themes/aviweb/include” theme folder.
- By using html and php you can write code in header.php and footer.php.
- Now you can include both files in page.tpl.php in header area and footer area like PHP.
<?php include_once($theme_path.’/include/header.php’); ?>
<?php include_once($theme_path.’/include/footer.php’); ?>