• Resolved dcarbaugh

    (@dcarbaugh)


    Hello,

    This morning I was making edits to my company website, https://www.ijtechnologies.com. I was trying to edit some code in what I thought was the header.php file, but was actually the functions.php file. My whole site is down, including the back end, dashboard, everything! I can’t even access my login! No error codes, just blank space. Can anybody help? Is there a way to get it back? I am using the Kerna theme.

Viewing 8 replies - 1 through 8 (of 8 total)
  • lisa

    (@contentiskey)

    can you access your files via FTP or webhosting control panel/file manager?

    do you have a backup copy of the theme files?
    have you made any theme customizations?
    do you have a child theme set up?

    Thread Starter dcarbaugh

    (@dcarbaugh)

    I am working on getting access to the hosting from my manager. I currently only have access to WordPress backpage/dashboard.

    I did not have any backup files for the customizations made, but I do have all of the theme files.

    There were plenty of customizations made. I deleted a couple lines of code referencing the “title” in attempt to get rid of the page title bar, and everything was gone.

    lisa

    (@contentiskey)

    do you think there were any customizations done to the function.php file before you accidentally removed it?

    you might be able to simply replace the code in the functions.php file if no changes had been made.

    has the theme version changed compared to the one that is currently on your website?

    child theme is helpful in these situations, if possible after resolving current issue….get all the theme customizations into a child theme. easier to manage when accidents happen.

    Thread Starter dcarbaugh

    (@dcarbaugh)

    I don’t believe there were any customizations to that file. I have the original functions.php file/code, but I have no access to my dashboard or back page at all. It is all gone. I am still waiting for the hosting information from my manager, who is currently out of town.

    The child theme normally does kick in if there is an issue, but this time everything just disappeared.

    lisa

    (@contentiskey)

    pls clarify: did you delete the child theme’s functions file or parent theme’s functions file?

    yes, to access any of the theme files to repair/replace etc. you will need to be able to get to directly into your hosting account or in via FTP client.

    Thread Starter dcarbaugh

    (@dcarbaugh)

    The lines were deleted from the parent theme’s file. It wasn’t the whole file that was deleted, just a couple of lines that are pretty important apparently.

    I am still working on getting access to the hosting. I really appreciate the help.

    Thread Starter dcarbaugh

    (@dcarbaugh)

    I got access to the hosting and was able to replace the functions.php file with no problem. Everything is back up and running. Thanks again for the assistance and recommendations.

    lisa

    (@contentiskey)

    glad you were able to resolve issues.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Accidental deletion of function.php code! Whole site down, including Dashboard!’ is closed to new replies.