简体   繁体   中英

Change default theme in multisite registration

I have a functionality where user can register for their free site and they get a sub domain. When new sub-domain is registered, by default, Twenty-Sixteen theme is activated, I want to change that to my custom theme. So that, whenever new sub domain is registered, my custom theme will be active by default.

Any thoughts?

Thanks in advance.

Edit your wp-config.php file and add the following code anywhere before the line where WordPress includes the wp-settings.php file define( 'WP_DEFAULT_THEME', 'your-default-theme' ); Change your-default-theme to your selected theme

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM