Support » Installing WordPress » Call to undefined function get_header()

  • Resolved amirk011

    (@amirk011)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    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. 🙂

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Call to undefined function get_header()’ is closed to new replies.