Site logo

Archived topic

Bonehead developer did something to my functions.php file

13 replies · Started by EDWARD on August 27, 2018

Viewing posts 1–14 of 14

Hi Support
I just had a developer fooling with my site and crashed it. I got it back up but it was behaving weirdly. I had a look at the stylesheet because he was doing CSS for me. While I was there I noticed the functions.php file was blank i.e. there is nothing there. Of course he's disappeared.
Is there any way I can recover this?
Thanks

Edward Byrne
GP premium version

You can reach me at viral@thedeepsearch.com or ejb@zol.co.zw

Thanks Tom
Do I just paste it in and save?

Hi there, yes you can paste it into the functions file and save the file.

Hi David - I pasted that url into Chrome and opened it.
Then I copied the file and pasted (plain text) into the functions.php 'container' and saved.
Got "nonce failure'.
Thanks

I assume you did this inside "Appearance > Editor"?

You may need to open the file via FTP or your File Manager (inside your hosting account).

You can find the file in wp-content/themes/generatepress

Hi Tom, thanks for your reply... yes I pasted it in from Appearance - Editor

If I go to file manager in Cpanel can I just upload the file straight to my site? I am a little confused in that looking at my other sites there I do not see a functions.php file in any of them. Where does it hide in File manager?

Hey Tom, left you a review... Tell me how do I use wp-content/themes/generatepress to find the file?

Thank you!

Inside your file manager, can you see the wp-content/themes/generatepress folder? If so, does a functions.php file exist?

So I went to File Manager and copied the functions.php file from another site I have using GP Pro to the same file path in the site that has the problem. Did not seem to work. functions.php is still blank in the affected site.

Thanks Tom - all good!!

Awesome :)

This archived topic is closed to new replies.