• Hi, Iw as trying to add some code to the functions and now I keep getting the followng message.
    Parse error: syntax error, unexpected T_STRING in /home/triprep1/public_html/wp-content/themes/amazing-grace/functions.php on line 429

    is there anything I can do?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Remove that code using FTP or alternally, also using FTP delete the directory name of the Amazing Grace theme so that WP switches back to default and repair the functions.php then.
    Or maybe your control panel has the possibility to edit files directly?

    Thread Starter destinationexposed

    (@destinationexposed)

    thanks for the info I panicked a bit thinking everything was gone. I’ve gone in via my ftp server, but am unsure what to do? How do I remove a code via the ftp? I’ve goen in found the function file for Amazing grace, but it won’t let me edit it for some reason(i did save a copy of the original code, so if I can get back in I just need to paste it in). Will it work if I delete the functions file from the theme and then add a new function file copying the orginal code? I’m guessing it will.

    Indeed, most FTP clients can’t edit directly, but you can of course FTP the file to your computer, edit it and FTP it back. Or, indeed, just put back the original file.

    Thread Starter destinationexposed

    (@destinationexposed)

    Thanks I actually managed to find the editor and changed it. It’s back now.

    I was actually trying to out in the following functionality https://wphacks.com/how-to-display-wordpress-tags-dropdown-menu/

    I’m a complete novice so just posted the code at the end of my functions file. I’m guessing that was wrong. I thought if it went wrong it would be easy to press the back buton on the browser and delete the code. My mistake. Is there any good sites I can read up on php, would be interesting to know what i did wrong and how to utilize code like this.

    thanks for all your help so far

    I’m not much of a coder myself ??
    Perhaps that code is meant to replace your entire functions.php, compare the code with the original functions.php.
    Alternally, you might look for a plugin to do this for you, that’s a lot safer!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Messed up big style and now can’t get into editor at all’ is closed to new replies.