Forums

PLEASE HELP!!1 Blew up my site (4 posts)

  1. hadi
    Member
    Posted 4 years ago #

    I was trying to install the Event Calendar, which did not work, in the process I was messing with the main template file (index.php) I have listed what remains of the file below:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    ?>

    now the main page of my blog projectijtihad.com/blog is coming up with a blank page. you can get to the main page projectijtihad.com but once to try to access anything in the /blog directory it come up blank.

    Please help :(
    Thanks.
    hadi

  2. estjohn
    Member
    Posted 4 years ago #

    so.. redownload the theme you used and upload it again?

  3. Beel
    Member
    Posted 4 years ago #

    Whenever you screw up a file, replace it with the backup you created - that's the intelligent response. If intelligence didn't come with the DNA, then upload a copy of the file from the original WP download.

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    P.S. You RARELY want to mess with the index file in the root directory of WP. Edit the one in the theme directory.

  4. hadi
    Member
    Posted 4 years ago #

    Thanks for the kind words! I just figured out that require('./wp-blog-header.php'); was missing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.