Login ↓

Bringin’ Some Style to WordPress 2.7

by KingdomGeek on December 16, 2008

Note: the information in this post no longer applies if you’re running Thesis 1.3.3 or higher!

WordPress 2.7 is here, and the question on a lot of your minds’ is likely Does Thesis work with 2.7? Should I wait for the next version of Thesis to include fixes?

Let me reassure you that Thesis does indeed work with WordPress 2.7. In fact, I wouldn’t be surprised if some of you have upgraded WordPress and have been enjoying Thesis without noticing a single issue.

That isn’t to say that Thesis 1.3.2 doesn’t have issues with this new version of WordPress. With as many changes as have gone into WordPress 2.7, there were bound to be at least one hiccup. I have explored the interaction between Thesis & WordPress 2.7, and there is only one major compatibility issue.

While there is no doubt we’ll see a new release of Thesis addressing this issue, why wait for awesomeness when the fix is so incredibly simple!

Unstylish Admin Panels

If you’ve gone into the Thesis Options or Design Options panels since upgrading to WordPress 2.7, you’ve undoubtedly noticed that the styles and JavaScript no longer load correctly. The mechanism for loading the necessary files has changed, but thankfully the fix is extremely easy, especially if you’re at all familiar with modifying your custom_functions.php file.

Note: You can edit your custom_functions.php file using a free text editor like Notepad++ (Windows) or TextWrangler (Mac), but you can also edit the file directly from your WordPress admin panel by using the Thesis OpenHook plugin.

Once you have the file open for editing, you’ll want to add in this block:

if (is_admin()) {
	function custom_options_js() {
		$date = date('mdy');
		echo '<script type="text/javascript" src="' . THESIS_JS_FOLDER . '/thesis.js?d=' . $date . '" /></script>';
	}

	add_action('admin_head', 'thesis_options_stylesheet');
	add_action('admin_head', 'custom_options_js');
}

I preferred to add the code near the top, just after the opening line (<?php); however, you can add the code anywhere that works best with your own organizational habits, provided the structure of the code remains sound.

Once you’ve saved & uploaded the file back to your server, your Thesis admin panels will once again be stylin’!

And that’s it! See, I told you it was easy!

This fix was originally posted as Thesis on WordPress 2.7.

{ 1 trackback }

Posts about Wordpress 2.7 as of December 18, 2008 | The Lessnau Lounge
December 18, 2008 at 3:19 pm

{ 18 comments }

Dave C December 16, 2008 at 5:44 pm

Ahhh, That was the missing part of the Thesis puzzle when installing in 2.7. :-)
Thanks for the tip!

Dave

Simply Mike December 16, 2008 at 10:03 pm

I believe I’ll act like 2.7 doesn’t yet exist and wait for 1.4.

I’ve been blogging for several years without 2.7, surely I can make it til Chris turns us loose with 1.4 … which I hope is fairly soon ;-)

Hint, hint …

Fredrik December 17, 2008 at 3:51 am

Any news on when the new Thesis version (which includes the “Cosmo” functionality) will be released?

Sara Churchill December 17, 2008 at 5:25 am

THanks for the update - seems like a simple fix for a simple problem.

Jen December 17, 2008 at 6:36 am

Thanks for the update!

Patrick O'Brien December 17, 2008 at 6:40 am

It’s good to hear that Thesis works well with WordPress 2.7. I’ve been anxiously awaiting the major UI improvements to WordPress. And I’m also looking forward to seeing what goodies Thesis 1.4 will bring. I think the combination of WordPress 2.7 and Thesis 1.4 is going to be an awesome duo to start off the new year. It should be the kind of system most bloggers have been hoping to have for some time — simple, elegant, powerful, and friendly — not an easy combination to achieve, but well worth it.

Kingdom Geek December 17, 2008 at 3:01 pm

To everyone awaiting Thesis “The Theme Formerly Known as Cosmo” 1.4, I don’t know when it’ll be released. My fingers are crossed for a release before Christmas, but we’re all awaiting an announcement or news from Chris regarding the release. I’m not for sure how much he left to do after his vacation — or if the current cold weather hazards and such across America will delay his return from Europe.

Whatever the case may be, I expect some update from the man himself any day now. Well, at least I’m hoping for one. :D

Milan December 17, 2008 at 5:54 pm

This fix works for me.

Thanks a lot.

dante December 18, 2008 at 2:13 pm

I downloaded the Thesis Open Hook Plugin. I’ve read the instructions and still don’t know where to start.

DoctorFu December 18, 2008 at 4:23 pm

Simply Mike, if you’re fine with waiting, more power to you. I’d also like to say that my blog installed WP 2.7 great with Thesis 1.3.2 running strong! The design options section didn’t style in one section but still fully functional. I love this theme and all of it’s flexibility/SEO advantages.

BTW, thank you so much to Kingdom Geek for the easy to implement fix for the styling issue and also for the amazing OpenHook plugin. I would be surprised if this isn’t a default option included in the next Thesis update.

Simply Mike December 18, 2008 at 7:10 pm

Hey DoctorFu,

That’s a freakin’ great header on your blog and that RSS button is way cool !

We’ve used Rick’s fix on a couple of our blogs and I’m just waitin’ because I can.

The fix and 2.7 work great everyplace we’ve used ‘em so far.

I need the new front page/magazine stylings that I hope are in 1.4 more than I need anything else, so I’m waitin’ on the best to get even better.

Pearson Rules ! Long Code The King !

Pat Shaughnessy December 18, 2008 at 11:51 pm

Dan,
I tried 2.7 WP the day it was released. The only thing I noticed was crucial, I might even say CRITICAL–the “BIG A** SAVE BUTTON”
Lost a ton-o-weight! It looked svelte, but a little bit sad there at the bottom of the page.

No worries, all is well–the new fix did the trick.

Thanks
I love this theme.
pat

Orkut Scraps December 22, 2008 at 2:25 am

I started a new site with wordpress 2.7 and have loaded thesis template and its working cool. No problem at all. The url is http://www.bollyscraps.com and its just superbly cool and even the admin area works great.

DRoss December 22, 2008 at 3:12 pm

I couldnt find a normal contact area so I’ll make a comment to the site mods here.

In your showcase and testimonials section you have a very despicable website operator. icmbot.com is a program that allows people to cheat others in online poker. I ask you to remove anything relating to that site.

His site on the showcase page is the thumbnail third from the bottom , in the middle and he has left you a testimonial as well.

Please remove him fro your website. Since you now know, you are aiding a criminal.

Thanks

Matt December 23, 2008 at 12:50 pm

Just wanted to let you know that Thesis made my list of the best WordPress themes of 2008! Congratulations.

http://www.bestwpthemes.com/the-best-wordpress-themes-of-2008/

Geoff December 28, 2008 at 9:26 pm

How about making the design options a wp plugin. I’ve seen more than one designer include user friendly design option selections in their themes and it would be nice if there were some standards set which everyone could agree would make sense in a plugin to standardize the framework.

schmooopypants December 30, 2008 at 9:46 am

I simply must own this theme.

J.R. Farr December 30, 2008 at 12:38 pm

Ah thank you! That makes it look so much better. I was tired of looking at those damn round buttons all the time.

Comments on this entry are closed.

Previous post: This Week in Thesis — December 6, 2008

Next post: Thesis 1.3.3 is Available Now with Seamless Options Integration for WordPress 2.7