WordPress.org

Forums

[resolved] Call to undefined function get_header() (4 posts)

  1. amirk011
    Member
    Posted 6 years ago #

    Hello, I've installed wordpress 2.6 version. It's working fine. But whenever I change theme it gives the error "Fatal error: Call to undefined function get_header() in /home/paknewz/public_html/index.php on line 1". It's only working with default theme. Please me why issue is being faced by me.

  2. Are you putting your theme in the root or something? That's not the right place to put it. It should be in it's own directory in wp-content/themes.

    See http://codex.wordpress.org/Using_Themes

  3. amirk011
    Member
    Posted 6 years ago #

    Ya I was doing the same mistake. Now I put it @ right place and i.e. default theme directory. Issue is fixed. Anyways, thanks for guiding me. :)

  4. sigotratando
    Member
    Posted 6 years ago #

    Greetings! I had my theme working for weeks, having put it in its own directory and all. Then I changed the CSS and some navigation (pertaining to the rest of the site wherein the blog is found), and now I get this error message. Everything else about the pages is exactly the same except these things, yet I get this error. Advice?

    Thanks!!
    -ron

Topic Closed

This topic has been closed to new replies.

About this Topic