If you have upgraded to WordPress 3.0 and use the Thesis theme, you may have noticed that now you receive a fatal call error when trying to access your custom.css file via the Custom File Editor within your Thesis options that looks something like this:
Fatal error: Call to undefined function use_codepress() in /DIRECTORY/public_html/wp-content/themes/thesis_17/lib/admin/admin.php on line 42
In order to correct this, you’ll need to disable the syntax highlighter, which is what is creating the issue. Doing this is simple.
- Find your admin.php file located in /wp-content/themes/thesis_17/lib/admin/ (you’ll need to download an FTP client if you don’t already have one — my favorite is FileZilla)
- Open your Notepad or other text/html editor (do not do this in Word or any other program that uses an autoformatting feature)
- Hold down your CTRL key and press the “F” key. This should pop up a find function. Paste the following string into the box and search for it in your file:
if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
- Comment that line out of the file by placing “//” in front of it like this:
// if (use_codepress()) add_action('admin_print_footer_scripts', 'codepress_footer_js');
- Reupload your file using the FTP client
VOILA! You’re done. Reload your Custom File Editor and it should work like a charm. Of course, the syntax highlighter is now disabled, but at least you can access your custom.css file from within your WordPress dashboard! :) Happy blogging to ya!

Leave a Reply