There’s a new and very little documented feature in 3.0 for changing the default theme. And? This will work on single WordPress installs as well as being handy for a network of sites.
The magic line is this in your config file:
define('WP_DEFAULT_THEME', 'classic');
In this example, the classic theme is used as the default when a site is created, or when a theme in use is removed. If you are starting fresh with 3.0, the default is the new TwentyTen, so this override is handy.
Added tip: if you have a lot of blogs using the Kubrick theme and wanted to remove it and set the other blogs, do this define first with your new default theme, then remove or rename the Kubrick theme folder (in my it was simply “default”). On a refresh, all blogs using the Kubrick theme will be switched to your new default.
If you just wanted the Kubrick theme to go away and have twentyten show up, you won’t need to do the define above. Just rename the /default/ theme folder. It’ll kick in.
(thanks to Ron for reminding me & MichaelH for the codex note I missed)
Twitter: dgilmour
says:
Thanks Andrea, I’d been wondering!
I tried the code.But nothing is changed. The same “TwentyTen” .
Twitter: andrea_r
says:
Do you have any plugins running like New Blog Defaults? Also, it does not change the theme on all blogs by itself.
I don’t have the plugins like “New Blog Defaults” .But I installed plenty of plugins of different kinds.
I think “YD Network-wide options” is a cause for this error.
Twitter: philoutsourcing
says:
Thanks for this … I’ve been searching in the wrong places and thought it was part of the control panel … Andrea rocks indeed!
I am getting a blank page If I try any of these themes other than classic .
Overdose40
Mystique
ChocoTheme
WordPraized
Could you tell me where I am missing?
You use the name of the folder that the theme is in as opposed to the name of the theme.
Thanks a lot ! It worked for me.