- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
having the same problem as “hrechkaness”; built out a website in html ; but was later told it would need to be in php and that each page would need to use php include for the header and footer;
everything was fine, until I used php include; now neither the header or footer show on the page. why? I’ve tried everything even the suggestions listed with “hrechkaness” but nothing works;
It could be a bunch of problems but you could always have a look at the Php documentation for include http://php.net/manual/en/function.include.php
If you still can’t solve your problem just leave a reply and a link to pastebin or a github gist with your code because it’s hard to help with just the current info.
Did you try this?
<?php get_header(); ?>
<?php get_footer(); ?>
turns out my regular browsers (IE, FF, Chrome) could see/read them … not set up to read??? don’t even know how to fix that; in any case once I connect my site to the remote server (msql) it showed the header and footer and each and every page.
btw, here’s a pastebin to my code: http://pastebin.com/trfqZ9aj
tried multiple variations of the code; but that didn’t seem to be the issue
Here’s a pastebin link: http://pastebin.com/trfqZ9aj
Never mind; was able to figure it out; thanks.