The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

get_header(); not working (4 posts)

  1. onekea
    Posted 6 years ago #

    Hi, I've tried searching for the solution to this with no success.

    I've broken apart my html/css and have everything sorted (header, nav, leftcolumn, rightcolumn, footer)

    When it's in my index.php with just straight code it works fine, but as soon as I cut out a section and replace it with <?php get_header(); ?> it doesn't display and the site breaks. Same thing happens with any other get_file(); and I'm clueless and frustrated.

    Any help would be greatly appreciated.


  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Are you using the correct file names?


  3. onekea
    Posted 6 years ago #

    Yes. Thus far I have the following .php files

    index.php (Main Index Page_
    header.php (all the header info up untill the </div> tag of the header
    nav.php (the navigation section)

    It simply shows a blank white screen the minute I put in the <?php get_header(); ?> code.

  4. esmi
    Forum Moderator
    Posted 6 years ago #

    Sounds like you have an error in header.php. Try placing a copy of that file in the WordPress pastebin and posting the pastebin url here. Someone be able to spot the error and/or suggest a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic