Jul 032009

As i am using Thesis theme for my blog, some days ago i upgraded my Wordpress v2.7 to 2.8. After the upgrade, i was rather disappointed because my widgets were not working at all. I was not able to use the drag and drop feature of wordpress 2.8. Moreover it removed the search widget from my sidebar. First i was not sure about the problem, i thought the problem is may be with the new version of wordpress, but when i applied default wordpress theme, everything was working fine. So the problem was with thesis theme.


Later i figured out some of the small modifications in thesis admin.php which was available in the */wp-content/themes/thesis/lib/admin/. After doing the below mentioned modifications, everything was fine. All you need to do is to replace the following code with the new one.

  • Search thesis_options_js function () and replace this code
$date_modified_js = filemtime(THESIS_SCRIPTS . '/thesis.js');
$date_modified_ui = filemtime(THESIS_SCRIPTS . '/jquery-ui.js');
echo '<script type="text/javascript" src="' . THESIS_SCRIPTS_FOLDER . '/thesis.js?d=' . date('mdy-Gms', $date_modified_js) . '" /></script>' . "\n";
echo '<script type="text/javascript" src="' . THESIS_SCRIPTS_FOLDER . '/jquery-ui.js?d=' . date('mdy-Gms', $date_modified_ui) . '" /></script>' . "\n";

With this one

if (!is_admin()) { return; }
$date_modified_js = filemtime(THESIS_SCRIPTS . '/thesis.js');
$date_modified_ui = filemtime(THESIS_SCRIPTS . '/jquery-ui.js');
wp_enqueue_script('thesis-admin-js', THESIS_SCRIPTS_FOLDER.'/thesis.js');

For this other code:

  • In the same file search function thesis_admin_styles_and_scripts (). And replace only this code
add_action('admin_head', 'thesis_options_stylesheet');
add_action('admin_head', 'thesis_options_js');

With this

add_action('admin_head', 'thesis_options_stylesheet');
add_action('admin_head', 'thesis_options_js');
add_action('init', 'thesis_options_js');

Save and enjoy.

Do watch this video if you want to know whats new in Wordpress 2.8

Please backup your admin.php before you may start.

5 Responses to “Thesis And Wordpress 2.8 Problem Solved”

  1. [...] rest is here: Thesis And Wordpress 2.8 Problem Solved | TechToggle - Its All … | More Categories: Wordpress News Tags: drag-and - drop-problems - get-rid - [...]

  2. jawad says:

    That’s very helpful, Please tell me how much the thesis cost you? I’m planning to buy it for my blog too

  3. flashplayer says:


  4. Jawad says:

    Thanks for telling :)

Leave a Reply