WordPress.org

Ready to get started?Download WordPress

Forums

How to restore my Single.php file to its default (4 posts)

  1. BB5873
    Member
    Posted 6 years ago #

    I was messing around with the code on my Single.php file of my Sodelicious-black-10 theme, trying to integrate a stumbleupon button to the bottom of my posts. Anyway, I messed something up, and now the sidebar is under the posts, and the dates and information under the post are no longer under the small dotted lines that they were originally under. I am horrible at HTML editing, so is their anyway to restore my Single Page file to its original state without changing everything else?

  2. Chris_K
    Member
    Posted 6 years ago #

    Usually you'd recover it from your backup that you made before starting (hint hint).

    Or you could go redownload the theme again to get a clean copy of the original single.php.

  3. BB5873
    Member
    Posted 6 years ago #

    Oh, I see...Backing Up, you make it sound like it's something that I was already supposed to know. Again, I'm very new to this whole thing, um, how exactly would I back it up for future reference?

  4. SimonJ
    Member
    Posted 6 years ago #

    Come on dude... !

    What HandySolo means is, before any modification to a file, keep the original in another folder on your hard drive.

    1) you download the theme you want to use in /xyz

    2) you decompress it.

    3) you copy the theme uncompressed to another folder /abc

    4) then, when you edit a file such as single.php, you use the one in /abc, keeping the one in /xyz clean and original...

    (!) Re-Come on!

    S.

    p.s. By the way, if you kept the original compressed file somewhere, you can always decompress it again to retreive its original content.

    p.p.s. You can reteurn to the site where you download the theme to downolad an unmodified, original fresh new file.

Topic Closed

This topic has been closed to new replies.

About this Topic