Ivan Ong
Member
Posted 2 years ago #
How do we go about changing the default theme in wp 3.0++?
Is there a best-practice solution besides renaming the new theme to "Twenty Ten"?
Ideally, in order of preference, I'm hoping that it can be changed
1) via the admin panel
2) via wp-config.php
3) via editing the database (in case of version updates)
In case you're wondering, I'm trying to save a step when I create new sub-sites (WP 3.0 Multi-site feature). I intend to retain the Twenty Ten theme, so I prefer not to rename / replace it.
I totally agree with Ivan. Changing the default theme would be a create help.
jedwards-kcbt
Member
Posted 1 year ago #
Anyone fine a solution to this?
This would be very helpful!
jedwards-kcbt
Member
Posted 1 year ago #
Just found the answer to this....
Edit the file /wp-includes/default-constants.php
Find this line of code
if ( !defined('WP_DEFAULT_THEME') )
define( 'WP_DEFAULT_THEME', 'twentyten' );
And change the wp_defualt_theme value to the FOLDER of the theme you want to use.
Don't actually edit core files. Please.
The whole point of default constant values is that you can override them. :-)
define( 'WP_DEFAULT_THEME', 'twentynine' ); in wp-config.php should help.