WordPress.org

Forums

Fatal error get_header (3 posts)

  1. mixi
    Member
    Posted 3 years ago #

    Hi
    I have made a child theme and I am trying to make a separate page with another loop.

    I made a file called blog.php in my child theme folder but when I link to that file from the nav I get the message:
Fatal error: Call to undefined function get_header() in /wp-content/themes/cleanr-child/blog.php

    What am I doing wrong?
I guess I lack knowledge about working with child themes. But I can't find any relevant information.
    I got the same error when putting the file blog.php in the theme folder.

    Why does this not work?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Is this new file a custom page template?

  3. Shane G.
    Member
    Posted 3 years ago #

    Hi,

    Check with your uploaded theme and it must be inside the wp-contents/themes folder in order to work with the theme.

    It seems that in this case theme is uploaded in the root folder. Please move theme inside the theme directory of wordpress. Once you move theme to wordpress theme directory it will resolve.

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.