Using this method you can load 'template.php' into your visual designer and edit it no probs.
Note:Examples below are basic but you get the point
template.php
Expand|Select|Wrap|Line Numbers
- <?php if($hf=='header'){ ?>
- <html>
- <head>
- <title>Page Title</title>
- </head>
- <body>
- <?php } elseif($hf=='footer') {?>
- </body>
- </html>
- <?php } ?>
header.php
Expand|Select|Wrap|Line Numbers
- <?php $hf='header'; include('template.php')?>
footer.php
Expand|Select|Wrap|Line Numbers
- <?php $hf='footer'; include('template.php')?>