WordPress.org

Support

Support » How-To and Troubleshooting » Edited PHP Function in child theme and lost site

Edited PHP Function in child theme and lost site

Viewing 14 replies - 1 through 14 (of 14 total)
  • It seems to be an error at php code level due to which the site is not running.

    Can you access your files via ftp / ssh / cpanel? If so you could remove the change you just did and it should run fine.

    I’m with Bluehost? How can I do it with them? I also have Filezilla. Can you instruct me what to do?

    • Login to your site via FileZilla.
    • Download functions.php from yoursite.com/wp-content/themes/THEMENAME/ folderp
    • Remove the change you just did to functions.php and upload again.
    • After uploading retry and see if that works.

    Please replace THEMENAME with the theme name you have setup in your WordPress installation.

    Is there a simpler way? I’ve very inexperience with this.

    Following are a few ways to fix this issue:

    • Access your site via FTP and fix the error as mentioned above
    • If you have access to your hosting panel and they provide a file manager, using that make this fix.
    • Ask someone to fix this if you are having issues with this.

    Unfortunately I am not aware of any other ways to fix this apart from the above.

    Ok, I’m in my file manager now. What would the next action be? http://i.imgur.com/zLz0zM3.png

    Good. Now whichever theme you are using go to that. You could do so by clicking on the theme name under themes directory from left.

    Once there, you could edit your functions.php which would be present in selected theme directory.

    ok I have my website back. I tried to uninstall minimum pro and reinstall it thinking that would give me the original code but it didn’t work. Any ideas?

    If you have made changes directly in minimum pro then doing an uninstall / reinstall will not give you original code.

    To do so, you will need to install minimum pro from its source in original format. Also an ideal way to make changes to your theme files would be to create a child theme from the original theme. http://codex.wordpress.org/Child_Themes

    I made changed to Minimum Pro child theme on WordPress admin. I uninstalled it and reinstalled it (by downloading the theme again) but to no avail. Am I doing something wrong here?

    You are doing correct. It is hard to say anything without looking at the files / error which it is generating upon installing again.

    Is there anyway I can install the original theme as it was without alteration?

    esmi

    @esmi

    Forum Moderator

    Try switching to the default theme automatically by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    It’s fixed now. Thank you SO much for your help. Lifesaver.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Edited PHP Function in child theme and lost site’ is closed to new replies.