the functions.php file that loads is based on the currently active theme.
Theme’s are typically found in:
/wp-content/themes/
If you had only made this edit to the file, that is you had made no other changes to the theme’s default functions.php file, you can also overwrite that file on the remote server by uploading an unedited or backed up version.
If you had made working edits, find the current theme in that folder and in the current theme folder, find functions.php. Download it. Open it with a plain text editor, such as NotePad. Never edit with a Rich Text Editor (such as MS Word). You can then edit the file and remove the errant code.
Once the file is fixed, your site will run as it did before, you should not lose anything unless you added a malicious script, of course. Beware of code found online. There are plenty of good resources to use for code examples, but there are a ton of bad ones too!
Hi Pioneer Valley Design member,
Thank you sooo much for highlighting the process. I still haven’t resolved the issue, due to:
1. I don’t have any backed up files 🙁 I tried downloading the Customizr theme functions.php again and this is all the file contains
<?php
/**
* This is where you can copy and paste your functions !
*/
Is that it?? I feel there should be more, if so, where can i find the original functions.php file??
2. Then I’d have to use Filezilla to transfer it from ym PC to the wordpress correct?
3. Also, do you have any reliable sources for codes found online? to prevent this from happening again, that is if I EVER touch the codes again. I’ve learned my lesson 🙁
Many thanks for your time and support. Much appreciated!