What to do when you accidentally mess up with Thesis Custom Functions file?

February 20, 2010

When you are editing the Thesis Theme, for many reasons we have to edit the custom functions php file. If it’s being done correctly, then there’s no problem, but it’s a whole lot of pain when you screw up! You won’t be able to see your site, neither the editing menu; all that you will see is some php errors.

So how to fix this?

Step 1

Don’t panic! Because there’s always a solution.

Step 2

Use an FTP software such as FileZilla and access your web server. Locate wp-content/ themes/ thesis_16/ custom and download the custom_functions.php

Step 3

Open the custom_functions.php file using a notepad and remove/ edit to fix the issue.

Step 4

Upload the file back to where it was and refresh your site. If it doesn’t works, then bring on the file from thesis_16 backup folder and replace it with the server. Always keep backup!!

With this method you can also fix any other files that has been screwed up. Please do leave a reply on what do you think about this post!

  • http://kikolani.com/ Kristi Hines

    Whenever I’m making big changes to my custom functions PHP file, I login into my hosting as well, just so I can delete any of my changes right from the source file if something goes wrong. It’s important to remember to check your site immediately after changing something, just in case. If you have lots of changes to do, do them one by one, check your site, then move onto the next change. This way, you know exactly what section of code created a problem, and you can deal with it quickly to get your site running again.

  • http://tamal.me/ Tamal Anwar

    wow! thank you very much for the tip Kristi! Welcome to this new blog :)

  • http://kikolani.com/ Kikolani

    Whenever I'm making big changes to my custom functions PHP file, I login into my hosting as well, just so I can delete any of my changes right from the source file if something goes wrong. It's important to remember to check your site immediately after changing something, just in case. If you have lots of changes to do, do them one by one, check your site, then move onto the next change. This way, you know exactly what section of code created a problem, and you can deal with it quickly to get your site running again.

  • http://tamal.me/ Tamal Anwar

    wow! thank you very much for the tip Kristi! Welcome to this new blog :)

  • http://kikolani.com/ Kikolani

    Whenever I'm making big changes to my custom functions PHP file, I login into my hosting as well, just so I can delete any of my changes right from the source file if something goes wrong. It's important to remember to check your site immediately after changing something, just in case. If you have lots of changes to do, do them one by one, check your site, then move onto the next change. This way, you know exactly what section of code created a problem, and you can deal with it quickly to get your site running again.

  • http://tamal.me/ Tamal Anwar

    wow! thank you very much for the tip Kristi! Welcome to this new blog :)

  • http://twitter.com/thdesignblog/status/10259121761 Thesis Theme Design

    What to do if you accidentally mess up with thesis custom function file? http://ow.ly/1gpev

  • http://twitter.com/shamimnasir/status/10259121531 Shamim

    What to do if you accidentally mess up with thesis custom function file? http://ow.ly/1gpe3

  • http://twitter.com/thdesignblog/status/10813413920 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1oYmP

  • http://twitter.com/thdesignblog/status/10864654499 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1pcVB

  • http://twitter.com/thdesignblog/status/11143322084 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1rn4x

  • http://twitter.com/thdesignblog/status/11179362220 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1rHel

  • http://twitter.com/thdesignblog/status/11530055114 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1uipC

  • http://twitter.com/shamimnasir/status/11530055176 Shamim

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1oYmP

  • http://twitter.com/thdesignblog/status/11642929205 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1uB2B

  • http://twitter.com/shamimnasir/status/11642927405 Shamim

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1uB2A

  • http://twitter.com/thdesignblog/status/11968566974 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1wTY0

  • http://twitter.com/thdesignblog/status/11993629794 Thesis Theme Design

    What to do when you accidentally mess up with Thesis Custom Functions file? http://ow.ly/1wU8t

  • http://shamimnasir.com Shamim

    Oh! I am being messed up and tried to follow steps that u mentioned above. But it is not recovering and it shows an syntext error on Php file.

    And it’s really terrific that I have no back up yet.

    How to keep back up?

  • http://shamimnasir.com Shamim

    Oh! I am being messed up and tried to follow steps that u mentioned above. But it is not recovering and it shows an syntext error on Php file.

    And it's really terrific that I have no back up yet.

    How to keep back up?

  • http://www.digitalprescriptions.co.uk/ Jordan Stone

    Thanks a lot for this post – really came in handy!

  • http://www.digitalprescriptions.co.uk/ Jordan Stone

    Thanks a lot for this post – really came in handy!

  • http://bloggingwithsuccess.net/using-thesis-hooks Plugins That Make Blogging With Success Easier:Using the Thesis OpenHook | Blogging With Success

    [...] This is the part everyone hates! You'll need to backup your existing custom_functions.php file. A slip of the typing finger could mess up your theme when changing functions code. The only way to recover could be restoring the file you changed! Read this post on what to do when you accidentally mess up with Thesis Custom Functions file. [...]

  • http://wpvideotutorials.org/34153/effective-use-of-wordpress-3/ Effective Use of Wordpress – Wordpress Video Tutorials

    [...] What to do when you accidentally mess up with Thesis Custom … [...]

  • Landryshri

    hallelujah!!!! thank you!

  • Johnbartik

    handy.

     thanks!

blog comments powered by Disqus

Previous post:

Next post: