Change Default Theme (6 posts)

  1. Ivan Ong
    Posted 6 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.

  2. quinz
    Posted 6 years ago #

    I totally agree with Ivan. Changing the default theme would be a create help.

  3. jedwards-kcbt
    Posted 5 years ago #

    Anyone fine a solution to this?

    This would be very helpful!

  4. jedwards-kcbt
    Posted 5 years 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.

  5. Andrew Nacin
    Lead Developer
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic