function php operator killed my site
-
I have a problem. I tried to add: add_filter(‘widget_text’, ‘do_shortcode’); to make a form work as a widget in the right column.
The instructions were: To allow shortcodes in sidebar widgets, simply edit the functions.php file from your them and add the following code:add_filter(‘widget_text’, ‘do_shortcode’);
I could not find exactly where put this add_filter code so I began experimenting. I figured the worst I could do is to step backwards or get out without changing anything. Bad move. My site is down.
The error I get is:
Parse error: syntax error, unexpected ‘(‘, expecting ‘&’ or T_VARIABLE in /home/content/03/8353203/html/fyifixit/wp-content/themes/sliding-door.bak/functions.php on line 457My site is http://fyifixit.com
Now I have to fix it.
I can go back to my FTP file manager and delete the theme. Then reinstall the theme on WordPress admin panel. I have over 300 pages, hundred of pics and art, and lots of other stuff. Naturally I could never be able to recreate everything so what I do not want to do is compound my problem by losing my pages +.
I was able to get back into my website by renaming the theme to sliding-door.bak (it was sliding-door). I simply cannot get back to the functions php file And go to one of my other websites to bring back the correct php code.
So the short question is : Can I just remove the corrupt theme back at my FTP file manager? Will that solve my problem?
I may try that on one of my brand new websites to see if it works.
Any suggestions would be useful.
mikep
The topic ‘function php operator killed my site’ is closed to new replies.