Published on July 31, 2017 by WPBeginner

A common and seemingly frightening error that users can run into is the Syntax error. This error can prevent you from making any changes on your site and prevent it from even being visible but we’re here to help you resolve this issue without too much hassle.

We recommend using a FTP for this tutorial, if you do not know what a FTP program is take a look at our tutorial below:
www.wpbeginner.com/glossary/ftp

Text version of this tutorial:
www.wpbeginner.com/wp-tutorials/how-to-fix-the-syntax-error-in-wordpress

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:
www.facebook.com/wpbeginner

Follow us on Twitter:
twitter.com/wpbeginner

Checkout our website for more WordPress Tutorials
www.wpbeginner.com/

Summary of this tutorial:

With this error you will be locked out of your admin area so we would recommend using a FTP to log in to your site’s files.

Read the error it is giving you and locate the file the error is pointing to such as the wp-content themes folder and open the file that is causing the error.

If it is code that you have added you will want to remove the new code, save the file and then reupload it.

That should allow you to log back in to your WordPress website.

Leave a Reply

5 Comments on "How to Fix the Syntax Error in WordPress"

Notify of
avatar

Anime Channel
Guest
Anime Channel
9 days 20 hours ago

Here is my problem i got syntax error but cannot even go to my edit page

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
9 days 13 hours ago

If you have editied the file that caused that issue then you would likely want to use the FTP method from the video.

lovely yolmo
Guest
lovely yolmo
15 days 21 hours ago

how to customize header parts??? is there any plugin to customize??

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
15 days 17 hours ago

That would depend on what you are trying to change and your theme, one tool you could use would be: www.wpbeginner.com/plugins/css-hero-review-wordpress-design-customization-made-easy/

Beyond Multisite
Guest
Beyond Multisite
17 days 2 hours ago

This reminds me, I recently saw a plugin that automatically disables plugins that generates an error like this or other, so no need to manually change files to get your dashboard working. I thought it was a cool idea. I am not the author of the plugin. Here it is: codecanyon.net/item/wordpress-plugin-runtime-error-handler/20323927

wpDiscuz