WordPress.org

Ready to get started?Download WordPress

Forums

get_header(); not working (4 posts)

  1. onekea
    Member
    Posted 4 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.

    Thanks.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Are you using the correct file names?

    http://codex.wordpress.org/Theme_Development

  3. onekea
    Member
    Posted 4 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)
    leftcolumn.php
    maincontent.php
    rightcolumn.php
    footer.php

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

  4. esmi
    Forum Moderator
    Posted 4 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