Hi,
I'm quoting Naveldesign from his thread on the Single menu page.
Single Menu Page with Bv and PHP
I have done this for my menu and it's working like a charm.
Now I'm trying to repeat this for a header-logo image.
Page name = header.php
page html - start of page is:
<? function header() { ?>
end of page:
<?
}
?>
The html code in the html box on another page is:
<?php
include ("header.php");
header();
?>
I have followed all instructions and published the page in the same folder as the page where I want to to the header.
When viewing I get thius error message:
Fatal error: Cannot redeclare header() in /home/yohakqf/public_html/general/header.php on line 17
for the html box
What am I doing wrong? Please please please help.
I'm quoting Naveldesign from his thread on the Single menu page.
Single Menu Page with Bv and PHP
Please note that you can use this trick not only for menubars, but also for headers, footers, ads, practically ANYTHING that can be in some way inserted in a BV page (BV Rocks!). Just make sure, when using this trick for more than one elements (external pages) to save each page, with each own name, f.e. "header" , "footer" etc., and also in the html box, change the words "menu" with "header", "footer", etc.
You can have as many external elements called in your page as you like.
You can have as many external elements called in your page as you like.
Now I'm trying to repeat this for a header-logo image.
Page name = header.php
page html - start of page is:
<? function header() { ?>
end of page:
<?
}
?>
The html code in the html box on another page is:
<?php
include ("header.php");
header();
?>
I have followed all instructions and published the page in the same folder as the page where I want to to the header.
When viewing I get thius error message:
Fatal error: Cannot redeclare header() in /home/yohakqf/public_html/general/header.php on line 17
for the html box
What am I doing wrong? Please please please help.
Comment