• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is this new file a custom page template?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error get_header’ is closed to new replies.