This topic is locked

Can you have 2 header.php files

10/18/2010 6:59:24 PM
PHPRunner General questions
P
pwalkin author

I have a site that requires 2 header files. 1 page requires 1 header and a second page requires a different header. Can this be done?
Paul

Sergey Kornilov admin 10/19/2010

Proceed to the the page where you want to add a second header in Visual Editor. Put cursor where you want header to appear. Insert 'PHP code snippet' and put the following code there:

include("include\header2.php");
S
Stettin 10/19/2010



I have a site that requires 2 header files. 1 page requires 1 header and a second page requires a different header. Can this be done?
Paul


Take a look at this thread. It doesn't answer your question directly, but there's code and suggestions that should point you in the right direction.

http://www.webmaster-talk.com/php-forum/13299-php-dynamic-page-title-and-heading.html