Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP header and footer problem

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #209421
    Great Scott
    Participant

    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;

    #209445
    Tom
    Participant

    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.

    #209458
    mreider
    Participant

    Did you try this?

    <?php get_header(); ?>
    
    <?php get_footer(); ?>
    
    #209513
    Great Scott
    Participant

    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

    #209514
    Great Scott
    Participant

    tried multiple variations of the code; but that didn’t seem to be the issue

    #209515
    Great Scott
    Participant

    Here’s a pastebin link: http://pastebin.com/trfqZ9aj

    #209569
    Great Scott
    Participant

    Never mind; was able to figure it out; thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Back End’ is closed to new topics and replies.