WordPress Snippets at WPcustoms

Change default theme for multisites

When you create a new site in WordPress multisite it will automatically assign a theme to the new site. It does not use the theme that you have activate on the other sites or on the network setup but will use the default theme that is setup in WordPress.


/**
 * Snippet Name: Change default theme for multisites
 * Snippet URL: http://www.wpcustoms.net/snippets/change-default-theme-for-multisites/
 */
 // usage: paste in wp-config.php

define( 'WP_DEFAULT_THEME', 'Your-default-theme' );
require_once(ABSPATH . 'wp-settings.php');