How to set the default theme for wordpress multisite?
When we use the wordpress multi-site function, it is really convenient for us. We can build multiple sub-sites on the same website. This is very useful for some larger websites. Useful stuff. So, how do we set the default theme for wordpress multisite? Setting the default theme can be relatively more user-friendly.
Set the default theme for WordPress multi-site. Just like the normal WordPress website, we can set it through WP_DEFAULT_THEME.
Related recommendations: "WordPress Tutorial"
For example, I want to set the ssmay theme as the default theme for WordPress multi-sites. The method is as follows:
Open the root directory of the wordpress website, find the wp-config.php file, open it, and add the following code:
define('WP_DEFAULT_THEME', 'ssmay'); //ssmay是默认主题的名称,你可以改成你的主题名
In this way, we have set the default theme for the wordpress multi-site to the ssmay theme. When adding subsites to a multisite, the ssmay theme is automatically used as the default theme.
The above is the detailed content of WordPress multisite default theme. For more information, please follow other related articles on the PHP Chinese website!