Support » Fixing WordPress » How to fix syntax error -website is broken

Viewing 2 replies - 1 through 2 (of 2 total)
  • Looks like you modified theme files? You should only do that in a child theme – to fix the current error, you’ll need to first download a new copy of the theme here:


    Then using FTP (or Cpanel), find the file that’s messed up and replace it with a new copy from the above download:

                class-main-footer.php - REPLACE THIS FILE

    Hard to tell without more information. The error implies a code syntax error has been introduced around line 79 of class-main-footer.php in your theme files. Could you:

    a) describe any changes you made before this happened?

    b) copy and paste a small portion of the code in class-main-footer.php of your theme, around the line 79 mark?

    We’ll see what we can do!

    If you want to take a look yourself, you can download a fresh copy of the customizr theme, open the unedited version of class-main-footer.php and compare the two to see what changed.

    I also encourage you to create a child theme to make changes, rather than altering the original theme files. It’s much safer, and will maintain your changes even if the original theme updates!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to fix syntax error -website is broken’ is closed to new replies.