WordPress.org

Ready to get started?Download WordPress

Forums

Simple Catch
[resolved] My site was deleted when I chaged code in php file (15 posts)

  1. jalen01
    Member
    Posted 1 year ago #

    I was following advice on this site about removing the "Continue Reading" text by pasting in some code into the functions.php file. Now the site appears as a black white page with () at the top left corner! You can view the site as it appears now at http://www.shaughnadkins.com.

    Can someone send me the original code for the functions.php file in Simple Catch theme? I will paste that in and start over again.

    If you also have the proper instructions for removing the continue reading text without deleting your entire site in the process, that would be most appreciated!

    http://wordpress.org/extend/themes/simple-catch/

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Just download a copy of the theme to your local computer and then upload the functions.php file via FTP to your site. That should fix the problem.

    Also, be aware that you should be using a Child Theme to make any changes - it's not recommended to make any changes to theme files -- they will get overwritten when the theme is updated.

  3. jalen01
    Member
    Posted 1 year ago #

    I've never used FTP with WordPress. I've always done the browser-based changes. How do I FTP? Many thanks!

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Ask your FTP credentials from your hosting organisation, then use some FTP software like FileZilla to connect (using your credentials) to your webserver. You can then retrieve your functions.php file.

  5. jalen01
    Member
    Posted 1 year ago #

    I am logged in to my FTP account on the hosting website. What folder should I upload the replacement functions.php file to?

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Following WPYogi's instructions, your functions.php file should be within this directory;

    /wp-content/themes/simple-catch/
  7. jalen01
    Member
    Posted 1 year ago #

    I downloaded the latest version of Simple Catch, then uploaded the functions.php file to the folder location Andrew noted. However, the site is STILL blank, except for the two parentheses () in the upper left-hand corner.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Still from FTP, try deactivating that theme by changing the name on the theme folder - then WP should default to the default theme and let you login again.

    It's explained in here too:

    http://codex.wordpress.org/Login_Trouble

  9. jalen01
    Member
    Posted 1 year ago #

    Using WPyogi's link, I learned how to rename the theme and was able to log in to the dashboard (thank you WPyogi!). But the site still is blank when I go to view it. The link advises me to "run some code" to find out what went wrong. How do I run that code?

  10. Latka
    Member
    Posted 1 year ago #

    First change to another theme. Then delete the old theme and reinstall it. Now change back to the old theme. That is what I would do. You may have reasons for not wanting to do that though. I cant think of any but it may necessitate modding the theme again to how you had it before you made the mistake

  11. jalen01
    Member
    Posted 1 year ago #

    There are two other themes installed right now. So to switch themes, I just change the designation in my dashboard? Thanks Latka!

  12. jalen01
    Member
    Posted 1 year ago #

    One more question: To delete the old theme, should I just delete it from Windows Explorer, or is there a better method? Thank you.

  13. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I just delete it from Windows Explorer

    Don't know what that means, but perhaps the easiest is to go back to FTP and delete the folder with that theme name.

  14. jalen01
    Member
    Posted 1 year ago #

    WPyogi, it worked! I installed a new theme, switched to that one, and then deleted Simple Catch theme. I like the new one, so may stay with it, rather than revert to Simple Catch. Thank you, everyone who chimed in with helpful advice!!!

  15. Andrew
    Forum Moderator
    Posted 1 year ago #

    Really good work here, Jalen01, WPyogi and Latka :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic