WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Recovering default code (3 posts)

  1. m1nna
    Member
    Posted 7 years ago #

    While editing the single.php page, I deleted some code without backing up the original code. I deleted the gray area text above the comment post. The code I deleted was in this code:

    <p class="postmetadata alt">
    <small>
    <?php } edit_post_link('Edit this entry.','',''); ?>
    </small>

    I'm now getting an error message when you click on "comments" that says:

    Parse error: syntax error, unexpected '}' in /home/monennac/public_html/wp-content/themes/default/single.php on line 22

    I am a newbie using WordPress, so I appreciate any help.

  2. moshu
    Member
    Posted 7 years ago #

    Don't mess with the code if you don't know what are you doing.
    Download the WP package and get a fresh copy of the theme.
    Or, if it was another theme... get a new copy of that.

  3. m1nna
    Member
    Posted 7 years ago #

    thanks... i will do that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags