WordPress.org

Ready to get started?Download WordPress

Forums

I somehow messed up my entire site (3 posts)

  1. barrymendel
    Member
    Posted 8 years ago #

    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 (barrymendel.com). 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.

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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.

  3. barrymendel
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.