Question

I have a server that uses themes from our private repository, and I'd like to auto enable the themes as soon as they exist in the wordpress themes folder.

Right now I have to login as administrator and enable the theme network-wide so the adminisrators can choose the theme.

Is there a way to configure wordpress network to AUTO enable the themes?

Was it helpful?

Solution

Unfortunately, no. For something like that to work, WordPress (or some plugin to do that) would need to scan themes folder for changes, and that can be performance intensive operation. Maybe with some sort of scheduled scan running every few minutes.

I am not aware of any plugin that can do that.

OTHER TIPS

You can override the WordPress default theme by editing your wp-config.php file. Just add the following code anywhere before the line where WordPress includes the wp-settings.php file.

Add this

1:    define( 'WP_DEFAULT_THEME', 'your-default-theme' ); 

Before

2:    require_once(ABSPATH . 'wp-settings.php');

So when you will create a new subsite in multisite, it will automatically enable the theme defined in WP-CONFIG file.

If theme is not availabe it will choose defauly twentyseventeen theme.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top