cannot use different header file
-
Hi All,
I’m trying to use a different header file for page.php using the description at:
https://codex.www.ads-software.com/Function_Reference/get_header
I’ve created a copy of header.php name header2.php and put a small message in its body tag to test if it’s being used ie:
<?php echo “hello hello hello hello hello hello” ?>
I’ve changed the call in page.php from
get_header();
to get_header(‘header2’);
but it doesn’t display hello (ie use the header2.php file).
Any ideas?
Thanks
Bruce
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘cannot use different header file’ is closed to new replies.