Home > CMS Tutorial > WordPress > body text

WordPress multisite default theme

爱喝马黛茶的安东尼
Release: 2019-07-20 09:55:20
Original
2918 people have browsed it

WordPress multisite default theme

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是默认主题的名称,你可以改成你的主题名
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!