• Resolved gpowis

    (@gpowis)


    Hi

    WordPress 3.5.2 Twenty Twelve

    I seem to have hit a problem. I was trying to paste in some code into my functions.php file and my site has gone down. The paste was as follows:

    add_filter(‘the_content’,’nuke_title_attribute’);

    function nuke_title_attribute($output) {
    $output = preg_replace(‘/title=\”(.*?)\”/’,”,$output);
    return $output;
    }

    (I was trying to get rid of pop up descriptions over images)

    I copied back the original content of the file but no success – just the same error message which reads

    Parse error: syntax error, unexpected ‘}’ in /www/sites/904/128/www.gpowis.com/web/wp-content/themes/twentytwelve/functions.php on line 452

    Obviously I’m code useless but any ideas what I can do to get my site back?? Any help appreciated thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Either add extra ‘}’ or remove one required ‘}’ from functions.php.

    It will be better interpret if paste the code of functions.php in Paste Bin

    Thread Starter gpowis

    (@gpowis)

    Shashank thanks for your help – I found there was still some wrong code in the functions.php which I cleared out and now it’s all back to normal.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘parse error’ is closed to new replies.