hello. I am writing in reference to this.
I would like to include two different php files, header.php in the header template and footer.php in the footer template.
I created two plug-ins, both as "global start".
the code of the "header" plug-in is
that of the footer plug-in is
and added to the "header" template of my style
$includedphpheader
and to the "footer" template of my style
$includedphpfooter
I of course did not forget to change
path/to/this/file/
to the real path on my server
what is wrong or missing?
I would like to include two different php files, header.php in the header template and footer.php in the footer template.
I created two plug-ins, both as "global start".
the code of the "header" plug-in is
Code:
ob_start(); include('path/to/this/file/header.php'); $includedphpheader = ob_get_contents(); ob_end_clean();
Code:
ob_start(); include('path/to/this/file/footer.php'); $includedphpfooter = ob_get_contents(); ob_end_clean();
and added to the "header" template of my style
$includedphpheader
and to the "footer" template of my style
$includedphpfooter
I of course did not forget to change
path/to/this/file/
to the real path on my server
what is wrong or missing?
Comment