The Remedy to the Thesis Custom-Functions Error.

thesis custom php

Today you just installed Thesis on WordPress and you added some PHP code through the custom_functions.php editor and now you are locked-out of your WordPress dashboard. Many beginners experience this error message using Thesis, the highly customizable theme for WordPress.

One small mistake within the Functions PHP code will throw the error message and lock you out of the dashboard.

thesis theme custom functions pnp file

The Custom-Functions PHP Fix:

First and most importantly every user of Thesis should backup the custom code additions to a word document that includes all code in the custom.css and custom_functions.php files from the custom editor through WordPress. This backup will serve a purpose in case both files are accidentally overwritten. When doing a Thesis upgrade this copy and paste process is crucial. When I add new code I always update the word documents.

Before working with the custom_functions.php editor, launch your FTP program and drag the custom_functions.php file on to your desktop which is located in the custom folder—leave your FTP program open.

Path: wp-content -> themes -> thesis -> custom -> custom_functions.php

If you create a function such as the Headline Filter, or a Thesis Hook, and the smallest element is missing such as a comma will throw an error.

The simple fix is to drag the custom_functions.php file from your desktop back into the custom folder through your FTP. Go back to your browser and go to your WordPress dashboard and enter the custom editor.

The user can also use any editor such as Taco-Edit or Coda, two excellent Mac programs, in addition to using Transmit as the FTP.

Question: What happens if I did not back up my code and the PHP throws an error?
Answer: From the current download version of Thesis on your hard drive that you are using, drag the custom_functions.php file from the custom folder through the FTP, but you will lose any code added prior. If you don’t have the download just visit DIY Themes website to download the current version.

Share on your favorite Social Networks.

Previous post:

Next post: