Support » Fixing WordPress » I somehow messed up my entire site

  • So I was trying to create a static homepage. I tried to put the blog into a different folder that i had created and then i put a new index.php file in my root directory ( Now I get this message on every page:

    Call to undefined function: get_header() in /home/content/b/a/r/barrymendel/html/index.php on line 1

    But I can’t find where that is in the code. Any advice?

    There isn’t very much documentation on the get_header tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you include a link to wp-blog-header ?

    Let’s say you put WP into a directory called ‘blog’
    At root, you index.php must have this line in it – it must go inside the <head> </head> tags:

    <?php include(‘/blog/wp-blog-header.php’); ?>

    use a URL for the include if the above fails. Once you include that file, all should be good.
    If not, post back.

    but php doesn’t have head tags when i am editing it in the theme editor. also, i originally had the site at and then changed it to another directory which broke the site completely. but now i want it to go back to and I still can’t get it right.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I somehow messed up my entire site’ is closed to new replies.