try to use FTP https://codex.ww.wp.xz.cn/FTP_Clients to replace the broken fle with its original
I have to idea what to do…I use cPanel…Idk where to click…its very hard to understand 🙁
Hi, newbie just like you here. If you have access to cPanel, you then are able to use an FTP client, which basically shows all your directories in a program’s window instead of a browser. It makes it easy to work with directories and files, and in this program, you will be able to backup all your files, replace them, edit them and God knows what else you can do there.
So all you need to do is to go here https://filezilla-project.org/ and download and instal it on your computer. Then you need to find in your cPanel Host, Username and retrieve your password for cPanel (I am not sure how it all works on your end), but once you enter these details in FileZilla, you will see your local folders on your computer in the left windows and site folders on the right.
From there locate your functions.php file and replace to a fresh one or delete whatever you wrote in there by clicking on the file then View/Edit (I hope moderators can step in and direct you through this, as Im not sure, whether deleting what you’ve added to it would work).
Hope this helps, let me know if it worked