Support » Fixing WordPress » Broken Site

  • Hi, I tried to edit some code (mistake) and accidentally broke it. I’m using the twentyseventeen theme and I was editing the size of the images in the ‘theme functions’ part of the CSS. I changed one line and then immediately changed it back however I still get the below error message. I can’t get back into the ‘theme functions’ to change it either. I actually can’t do anything on the site at all, all I have is the error code below. Please help.

    Parse error: syntax error, unexpected ‘s’ (T_STRING), expecting ‘,’ or ‘)’ in /home/fracta35/public_html/wp-content/themes/twentyseventeen/functions.php on line 54

    The blog I need help with is

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ferncreature,

    I am sorry to hear this. But, now you have to change the code using the FTP details.

    after then you will be able to access site better.

    I think this URL: will help you.


    As above – You need FTP access to edit the file now.

    It tells you the exact file with the error and the line (54) where the error occurs.

    Look for the ‘s’ – there is a PHP syntax error.

    If you’re not a programmer, you’re going to have a hard time so either seek professional help OR an easier solution may be to download the TwentySeventeen theme and override all the files in /wp-content/themes/twentyseventeen/ with the fresh files you just downloaded.

    NOTE: If you’ve made any changes to these files that you want to keep – back them up first. Easiest way: change the name of /wp-content/themes/twentyseventeen/ e.g. rename twentyseventeen to twentyseventeen_BAK and then install the files into a fresh twentyseventeen directory – then you can compare the files and re-update if necessary

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